更新任务状态审核
This commit is contained in:
parent
00c9488f55
commit
e9d9367d47
@ -58,7 +58,13 @@ class ApproveController extends BaseLikeAdminController
|
|||||||
public function audit()
|
public function audit()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$params = $this->request->param(); // id check_status remark
|
$params = $this->request->param();
|
||||||
|
if(empty($params['id'])){
|
||||||
|
return $this->fail('缺少必要参数id');
|
||||||
|
}
|
||||||
|
if(empty($params['check_status'])){
|
||||||
|
return $this->fail('缺少必要参数审核状态');
|
||||||
|
}
|
||||||
$approve = Approve::find($params['id']);
|
$approve = Approve::find($params['id']);
|
||||||
if (!$approve) {
|
if (!$approve) {
|
||||||
$this->fail('数据不存在');
|
$this->fail('数据不存在');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user