更新商户入驻申请

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, 'street' => $streetId,
'mer_intention_id' => $intention->mer_intention_id 'mer_intention_id' => $intention->mer_intention_id
]; ];
$res = $this->sendMerIntentionApply($sendData); // $res = $this->sendMerIntentionApply($sendData);
if (!$res) { // if (!$res) {
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('申请商户入驻任务失败,请联系平台'); // throw new ValidateException('申请商户入驻任务失败,请联系平台');
} // }
return app('json')->success('提交成功'); return app('json')->success('提交成功');
} }