更新商户申请判定
This commit is contained in:
parent
85a624ff45
commit
711eebfc93
@ -141,12 +141,15 @@ class MerchantIntention extends BaseController
|
||||
if (empty($data['bank_username']) || empty($data['bank_opening']) || empty($data['bank_front']) || empty($data['bank_back']) || empty($data['cardno_front']) || empty($data['cardno_back'])) {
|
||||
return app('json')->fail('请完善银行卡及身份信息');
|
||||
}
|
||||
|
||||
|
||||
if (!systemConfig('mer_intention_open')) {
|
||||
return app('json')->fail('未开启商户入驻');
|
||||
}
|
||||
if ($this->userInfo) $data['uid'] = $this->userInfo->uid;
|
||||
$merInfo = Db::name('merchant')->where('uid', $this->userInfo->uid)->where('status', 1)->find();
|
||||
if (empty($merInfo)) {
|
||||
return app('json')->fail('请申请商户入驻申请!');
|
||||
}
|
||||
if (!empty($merInfo['business_status']) && ($merInfo['business_status']==1)) {
|
||||
return app('json')->fail('商户交易已申请,正在审核中!');
|
||||
}
|
||||
@ -166,7 +169,6 @@ class MerchantIntention extends BaseController
|
||||
'is_old_mer' => 1
|
||||
];
|
||||
}
|
||||
|
||||
$intenInfo['bank_username'] = $data['bank_username'];
|
||||
$intenInfo['bank_opening'] = $data['bank_opening'];
|
||||
$intenInfo['bank_front'] = $data['bank_front'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user