更新商户申请信息
This commit is contained in:
parent
a0019ef673
commit
46ace72122
@ -98,7 +98,7 @@ class MerchantIntention extends BaseController
|
|||||||
$res = $this->sendMerIntentionApply($sendData, $postUrl);
|
$res = $this->sendMerIntentionApply($sendData, $postUrl);
|
||||||
if (!$res['ok']) {
|
if (!$res['ok']) {
|
||||||
Db::name('merchant_intention')->where('mer_intention_id', $intention->mer_intention_id)->delete();
|
Db::name('merchant_intention')->where('mer_intention_id', $intention->mer_intention_id)->delete();
|
||||||
throw new ValidateException('申请商户入驻失败,' . $res['msg']);
|
throw new ValidateException('供销平台申请商户入驻失败,' . $res['msg']);
|
||||||
}
|
}
|
||||||
return app('json')->success('提交成功');
|
return app('json')->success('提交成功');
|
||||||
}
|
}
|
||||||
@ -206,7 +206,7 @@ class MerchantIntention extends BaseController
|
|||||||
$res = $this->sendMerIntentionApply($sendData, $postUrl);
|
$res = $this->sendMerIntentionApply($sendData, $postUrl);
|
||||||
if (!$res['ok']) {
|
if (!$res['ok']) {
|
||||||
Db::name('merchant_intention')->where('mer_intention_id', $intentionId)->delete();
|
Db::name('merchant_intention')->where('mer_intention_id', $intentionId)->delete();
|
||||||
throw new ValidateException('商户交易申请失败,' . $res['msg']);
|
throw new ValidateException('供销平台商户交易申请失败,' . $res['msg']);
|
||||||
}
|
}
|
||||||
Db::name('merchant')->where('uid', $this->userInfo->uid)->where('status', 1)->update(['business_status'=>1]);
|
Db::name('merchant')->where('uid', $this->userInfo->uid)->where('status', 1)->update(['business_status'=>1]);
|
||||||
return app('json')->success('申请成功');
|
return app('json')->success('申请成功');
|
||||||
@ -299,7 +299,7 @@ class MerchantIntention extends BaseController
|
|||||||
$postUrl = env('TASK_WORKER_HOST_URL') . '/adminapi/company/createShopMerchant';
|
$postUrl = env('TASK_WORKER_HOST_URL') . '/adminapi/company/createShopMerchant';
|
||||||
$res = $this->sendMerIntentionApply($sendData, $postUrl);
|
$res = $this->sendMerIntentionApply($sendData, $postUrl);
|
||||||
if (!$res['ok']) {
|
if (!$res['ok']) {
|
||||||
throw new ValidateException('申请商户入驻失败,' . $res['msg']);
|
throw new ValidateException('供销平台申请商户入驻失败,' . $res['msg']);
|
||||||
}
|
}
|
||||||
return app('json')->success('修改成功');
|
return app('json')->success('修改成功');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user