更新商家状态审核

This commit is contained in:
yaooo 2023-09-13 15:27:10 +08:00
parent 1be77e448a
commit 42677c23f1

View File

@ -1339,6 +1339,7 @@ class Auth extends BaseController
if (!$repository->getWhereCount(['mer_intention_id' => $id, 'is_del' => 0]))
return app('json')->fail('数据不存在');
$data = $this->request->params(['status', 'fail_msg']);
$data['create_mer'] = 0;
$data['fail_msg'] = $data['status'] == 1 ? '自动审核通过' : '自动审核拒绝';
$repository->updateStatus($id, $data);
return app('json')->success('修改成功');