更新商户状态处理
This commit is contained in:
parent
033e9d6a1f
commit
e6642a6b41
@ -1372,8 +1372,9 @@ class Auth extends BaseController
|
||||
$repository->updateStatus($id, $data);
|
||||
} else {
|
||||
//商户交易申请
|
||||
Db::name('merchant_integntion')->where('mer_intention_id', $intentionId)->where('type', 2)->update(['status' => ($status == 1 ? 1 : 2)]);
|
||||
Db::name('merchant')->where('mer_intention_id', $id)->where('status', 1)->update(['business_status' => ($status == 1 ? 2 : 3)]);
|
||||
Db::name('merchant_integntion')->where('mer_intention_id', $id)->where('type', 2)->update(['status' => ($status == 1 ? 1 : 2)]);
|
||||
$merId = Db::name('merchant_integntion')->where('mer_intention_id', $id)->where('type', 2)->value('mer_id', 0);
|
||||
Db::name('merchant')->where('mer_id', $merId)->where('status', 1)->update(['business_status' => ($status == 1 ? 2 : 3)]);
|
||||
}
|
||||
|
||||
return app('json')->success('同步成功');
|
||||
|
Loading…
x
Reference in New Issue
Block a user