更新验证商户手机
This commit is contained in:
parent
4be643e08b
commit
ed15096735
@ -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']))
|
||||
|
Loading…
x
Reference in New Issue
Block a user