|
@@ -177,7 +177,7 @@ class Withdraw extends Common
|
|
*/
|
|
*/
|
|
public function bindBank() {
|
|
public function bindBank() {
|
|
try {
|
|
try {
|
|
- $realname = $this->request->request('realname');
|
|
+
|
|
$bank_no = $this->request->request('bank_no');
|
|
$bank_no = $this->request->request('bank_no');
|
|
|
|
|
|
|
|
|
|
@@ -188,7 +188,7 @@ class Withdraw extends Common
|
|
$mobile = $this->request->request('mobile');
|
|
$mobile = $this->request->request('mobile');
|
|
$userId = $this->auth->id;
|
|
$userId = $this->auth->id;
|
|
|
|
|
|
- if(!$realname || !$bank_no || !$open_bank ) {
|
|
+ if(!$bank_no || !$open_bank ) {
|
|
throw new Exception("请将信息填写完整");
|
|
throw new Exception("请将信息填写完整");
|
|
}
|
|
}
|
|
$userAuthWhere['user_id'] = $userId;
|
|
$userAuthWhere['user_id'] = $userId;
|
|
@@ -196,6 +196,10 @@ class Withdraw extends Common
|
|
if (empty($userAuth)) {
|
|
if (empty($userAuth)) {
|
|
throw new Exception('请先实名认证');
|
|
throw new Exception('请先实名认证');
|
|
}
|
|
}
|
|
|
|
+ if ($userAuth['status'] != 1) {
|
|
|
|
+ throw new Exception('请先实名认证通过');
|
|
|
|
+ }
|
|
|
|
+ $realname = $userAuth['realname'];
|
|
$idCard = $userAuth['idcard'];
|
|
$idCard = $userAuth['idcard'];
|
|
$userService = new UserService();
|
|
$userService = new UserService();
|
|
$aliParams = [
|
|
$aliParams = [
|