This commit is contained in:
chenbo 2023-09-19 10:34:16 +08:00
parent 365a41d8ec
commit 7a74b82b9c
2 changed files with 5 additions and 2 deletions

View File

@ -36,6 +36,9 @@ class ApproveController extends BaseApiController
// 拒绝通过
if ($params['check_status'] == 3) {
if (empty($params['remark'])) {
throw new Exception('请输入拒绝理由');
}
$this->refuse($approve, $params);
}
// 修改任务完成状态
@ -45,7 +48,7 @@ class ApproveController extends BaseApiController
// 回调商城,通知审核状态
if (in_array($approve['type'], [2, 3])) {
$shopMerchantInfo = json_decode($approve['extend']);
$shopMerchantInfo = json_decode($approve['extend'], true);
self::shopCallBack($approve, $shopMerchantInfo, $params);
}
Db::commit();

View File

@ -18,7 +18,7 @@ class ApproveLists extends BaseApiDataLists implements ListsSearchInterface
public function setSearch(): array
{
return [
'=' =>['type']
'=' =>['type', 'check_status']
];
}