更新任务状态审核

This commit is contained in:
yaooo 2023-11-14 14:56:17 +08:00
parent 00c9488f55
commit e9d9367d47

View File

@ -58,7 +58,13 @@ class ApproveController extends BaseLikeAdminController
public function audit()
{
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']);
if (!$approve) {
$this->fail('数据不存在');