更新同步商家状态
This commit is contained in:
parent
ca1e16b869
commit
3965ca10be
@ -1335,12 +1335,15 @@ class Auth extends BaseController
|
|||||||
//同步商户状态信息
|
//同步商户状态信息
|
||||||
public function merchantStatus($id)
|
public function merchantStatus($id)
|
||||||
{
|
{
|
||||||
|
Log::info("接收到同步商户状态HOST:" . request()->url());
|
||||||
|
Log::info("接收到同步商户状态信息:" . json_encode($this->request->params()));
|
||||||
$repository = app()->make(MerchantIntentionRepository::class);
|
$repository = app()->make(MerchantIntentionRepository::class);
|
||||||
if (!$repository->getWhereCount(['mer_intention_id' => $id, 'is_del' => 0]))
|
if (!$repository->getWhereCount(['mer_intention_id' => $id, 'is_del' => 0]))
|
||||||
return app('json')->fail('数据不存在');
|
return app('json')->fail('数据不存在');
|
||||||
$data = $this->request->params(['status']);
|
$status = $this->request->params(['status']);
|
||||||
|
$data['status'] = $status;
|
||||||
$data['create_mer'] = 0;
|
$data['create_mer'] = 0;
|
||||||
$data['fail_msg'] = $data['status'] == 1 ? '自动审核通过' : '自动审核拒绝';
|
$data['fail_msg'] = $status == 1 ? '自动审核通过' : '自动审核拒绝';
|
||||||
$repository->updateStatus($id, $data);
|
$repository->updateStatus($id, $data);
|
||||||
return app('json')->success('同步成功');
|
return app('json')->success('同步成功');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user