新增商户审核发布申请
This commit is contained in:
parent
e4f89b9edb
commit
c8751824a8
@ -47,7 +47,7 @@ class MerchantIntention extends BaseController
|
|||||||
if ($this->userInfo) $data['uid'] = $this->userInfo->uid;
|
if ($this->userInfo) $data['uid'] = $this->userInfo->uid;
|
||||||
$merInfo = Db::name('merchant')->where('uid', $this->userInfo->uid)->where('status', 1)->find();
|
$merInfo = Db::name('merchant')->where('uid', $this->userInfo->uid)->where('status', 1)->find();
|
||||||
if ($merInfo) {
|
if ($merInfo) {
|
||||||
throw new ValidateException('该用户已存在商户,不可申请');
|
//throw new ValidateException('该用户已存在商户,不可申请');
|
||||||
}
|
}
|
||||||
// $newUid = Db::name('User')->where('account', $data['phone'])->value('uid', -1);
|
// $newUid = Db::name('User')->where('account', $data['phone'])->value('uid', -1);
|
||||||
// if ($newUid != -1 && $this->userInfo->uid != $newUid) {
|
// if ($newUid != -1 && $this->userInfo->uid != $newUid) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user