更新商户入驻申请

This commit is contained in:
yaooo 2023-09-13 17:01:18 +08:00
parent fa125194ae
commit f5775884e3

View File

@ -80,11 +80,11 @@ class MerchantIntention extends BaseController
'street' => $streetId,
'mer_intention_id' => $intention->mer_intention_id
];
$res = $this->sendMerIntentionApply($sendData);
if (!$res) {
Db::name('merchant_intention')->where('mer_intention_id', $intention->mer_intention_id)->delete();
throw new ValidateException('申请商户入驻任务失败,请联系平台');
}
// $res = $this->sendMerIntentionApply($sendData);
// if (!$res) {
// Db::name('merchant_intention')->where('mer_intention_id', $intention->mer_intention_id)->delete();
// throw new ValidateException('申请商户入驻任务失败,请联系平台');
// }
return app('json')->success('提交成功');
}