更新同步商家状态
This commit is contained in:
parent
42677c23f1
commit
ca1e16b869
@ -1338,10 +1338,10 @@ class Auth extends BaseController
|
||||
$repository = app()->make(MerchantIntentionRepository::class);
|
||||
if (!$repository->getWhereCount(['mer_intention_id' => $id, 'is_del' => 0]))
|
||||
return app('json')->fail('数据不存在');
|
||||
$data = $this->request->params(['status', 'fail_msg']);
|
||||
$data = $this->request->params(['status']);
|
||||
$data['create_mer'] = 0;
|
||||
$data['fail_msg'] = $data['status'] == 1 ? '自动审核通过' : '自动审核拒绝';
|
||||
$repository->updateStatus($id, $data);
|
||||
return app('json')->success('修改成功');
|
||||
return app('json')->success('同步成功');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user