更新验证商户手机

This commit is contained in:
yaooo 2023-09-09 11:32:17 +08:00
parent 4be643e08b
commit ed15096735

View File

@ -47,11 +47,11 @@ class MerchantIntention extends BaseController
if ($this->userInfo) $data['uid'] = $this->userInfo->uid;
$newUid = Db::name('User')->where('account', $data['phone'])->value('uid', -1);
if ($newUid != -1 && $this->userInfo->uid != $newUid) {
throw new ValidateException('该申请手机已存在账户,不可申请');
//throw new ValidateException('该申请手机已存在账户,不可申请');
}
$newMerid = Db::name('Merchant')->where('mer_phone', $data['phone'])->value('mer_id', -1);
if ($newMerid != -1) {
throw new ValidateException('该申请手机已存在商户,不可申请');
//throw new ValidateException('该申请手机已存在商户,不可申请');
}
$make = app()->make(MerchantRepository::class);
if ($make->fieldExists('mer_name', $data['mer_name']))