Commit 3c464867 authored by hujun's avatar hujun

转到审核中

parent 41c9fe7d
...@@ -300,4 +300,31 @@ class DailyPaper extends Basic ...@@ -300,4 +300,31 @@ class DailyPaper extends Basic
return $this->response("200", "success", ['img_url' => $img_url]); return $this->response("200", "success", ['img_url' => $img_url]);
} }
/**
* 转到审核中
*
* @return \think\Response
*/
public function backDailyCheck()
{
if (empty($params["daily_id"])) {
return $this->response("101", "参数错误");
}
$m_daily = new ODaily();
$daily_id = $m_daily->getFieldValue('id', ['id'=>$this->params['daily_id'], 'status'=>1]);
if (empty($daily_id)) {
return $this->response("101", "没有该数据");
}
$num = $m_daily->updateDaily(['status'=>0], ['id'=>$daily_id]);
if ($num > 0) {
$code = 200;
$msg = '转到审核中成功';
} else {
$code = 101;
$msg = '转到审核中失败';
}
return $this->response($code, $msg);
}
} }
\ No newline at end of file
...@@ -495,6 +495,7 @@ Route::group('index', [ ...@@ -495,6 +495,7 @@ Route::group('index', [
'commitCheck' => ['index/DailyPaper/commitCheck', ['method' => 'get|post']], 'commitCheck' => ['index/DailyPaper/commitCheck', ['method' => 'get|post']],
'getPayLogImg' => ['index/DailyPaper/getPayLogImg', ['method' => 'get|post']], 'getPayLogImg' => ['index/DailyPaper/getPayLogImg', ['method' => 'get|post']],
'dailyBackImg' => ['index/DailyPaper/dailyBackImg', ['method' => 'post']], 'dailyBackImg' => ['index/DailyPaper/dailyBackImg', ['method' => 'post']],
'backDailyCheck' => ['index/DailyPaper/backDailyCheck', ['method' => 'post']],
'addUserBind' => ['index/member/addUserBind', ['method' => 'get|post']], 'addUserBind' => ['index/member/addUserBind', ['method' => 'get|post']],
'removeUserBind' => ['index/member/removeUserBind', ['method' => 'get|post']], 'removeUserBind' => ['index/member/removeUserBind', ['method' => 'get|post']],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment