更新商户入驻

This commit is contained in:
yaooo 2023-09-14 16:16:38 +08:00
parent 6569b7bf02
commit c3b8014bbd

View File

@ -46,7 +46,7 @@ class MerchantIntention extends BaseController
return app('json')->fail('未开启商户入驻');
}
if ($this->userInfo) $data['uid'] = $this->userInfo->uid;
if ($this->userInfo->phone && ($this->userInfo->phone != $data['phone'] ?? '')) {
if ($this->userInfo->phone && ($this->userInfo->phone != ($data['phone'] ?? ''))) {
throw new ValidateException('联系电话和注册手机不一致');
}
$intentionInfo = Db::name('merchant_intention')->where('social_credit_code', $data['social_credit_code'])->where('status', '<>', 2)->find();
@ -136,7 +136,7 @@ class MerchantIntention extends BaseController
if (!systemConfig('mer_intention_open')) {
return app('json')->fail('未开启商户入驻');
}
if ($this->userInfo->phone && ($this->userInfo->phone != $data['phone'] ?? '')) {
if ($this->userInfo->phone && ($this->userInfo->phone != ($data['phone'] ?? ''))) {
throw new ValidateException('联系电话和注册手机不一致');
}
$intentionInfo = Db::name('merchant_intention')->where('social_credit_code', $data['social_credit_code'])->where('status', '<>', 2)->find();