更新表结构

This commit is contained in:
yaooo 2023-09-25 13:26:55 +08:00
parent b177dcae8b
commit a83ffb86aa

View File

@ -196,7 +196,7 @@ class MerchantIntention extends BaseController
$postUrl = env('TASK_WORKER_HOST_URL') . '/adminapi/company/createShopMerchant';
$res = $this->sendMerIntentionApply($sendData, $postUrl);
if (!$res['ok']) {
Db::name('merchant_integntion')->where('mer_intention_id', $intentionId)->delete();
Db::name('merchant_intention')->where('mer_intention_id', $intentionId)->delete();
throw new ValidateException('商户交易申请失败,' . $res['msg']);
}
Db::name('merchant')->where('uid', $this->userInfo->uid)->where('status', 1)->update(['business_status'=>1]);