|  | @@ -32,31 +32,19 @@ class Userbank extends Api
 | 
	
		
			
				|  |  |          $userId = $this->auth->id;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          //检测实名认证
 | 
	
		
			
				|  |  | -        if(config('site.user_auth_switch') == 1){
 | 
	
		
			
				|  |  | -            $userAuthWhere['user_id'] = $userId;
 | 
	
		
			
				|  |  | -            $userAuth = Db::name('user_idconfirm')->where($userAuthWhere)->find();
 | 
	
		
			
				|  |  | -            if (empty($userAuth)) {
 | 
	
		
			
				|  |  | -                $this->error('请先实名认证');
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if ($userAuth['status'] != 1) {
 | 
	
		
			
				|  |  | -                $this->error('请先实名认证通过');
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        $userAuthWhere['user_id'] = $userId;
 | 
	
		
			
				|  |  | +        $userAuth = Db::name('user_idconfirm')->where($userAuthWhere)->find();
 | 
	
		
			
				|  |  | +        if (empty($userAuth)) {
 | 
	
		
			
				|  |  | +            $this->error('请先实名认证');
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if ($userAuth['status'] != 1) {
 | 
	
		
			
				|  |  | +            $this->error('请先实名认证通过');
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          $truename = $userAuth['truename'];
 | 
	
		
			
				|  |  |          $idCard = $userAuth['idcard'];
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        //验证
 | 
	
		
			
				|  |  | -        /*$userService = new UserService();
 | 
	
		
			
				|  |  | -        $aliParams = [
 | 
	
		
			
				|  |  | -            'bank_no' => $bank_no,
 | 
	
		
			
				|  |  | -            'id_card' => $idCard,
 | 
	
		
			
				|  |  | -            'real_name' => $truename,
 | 
	
		
			
				|  |  | -        ];
 | 
	
		
			
				|  |  | -        $aliBankCheckRes = $userService->bankCheck($aliParams);
 | 
	
		
			
				|  |  | -        if (!$aliBankCheckRes['status']) {
 | 
	
		
			
				|  |  | -            $this->error($aliBankCheckRes['msg']);
 | 
	
		
			
				|  |  | -        }*/
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // 查询是否有过绑定
 | 
	
		
			
				|  |  |          $bankInfo = Db::name('user_bank')->where(["user_id"=>$userId])->find();
 | 
	
	
		
			
				|  | @@ -100,15 +88,14 @@ class Userbank extends Api
 | 
	
		
			
				|  |  |          $userId = $this->auth->id;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          //检测实名认证
 | 
	
		
			
				|  |  | -        if(config('site.user_auth_switch') == 1){
 | 
	
		
			
				|  |  | -            $userAuthWhere['user_id'] = $userId;
 | 
	
		
			
				|  |  | -            $userAuth = Db::name('user_idconfirm')->where($userAuthWhere)->find();
 | 
	
		
			
				|  |  | -            if (empty($userAuth)) {
 | 
	
		
			
				|  |  | -                $this->error('请先实名认证');
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if ($userAuth['status'] != 1) {
 | 
	
		
			
				|  |  | -                $this->error('请先实名认证通过');
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        $userAuthWhere['user_id'] = $userId;
 | 
	
		
			
				|  |  | +        $userAuth = Db::name('user_idconfirm')->where($userAuthWhere)->find();
 | 
	
		
			
				|  |  | +        if (empty($userAuth)) {
 | 
	
		
			
				|  |  | +            $this->error('请先实名认证');
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if ($userAuth['status'] != 1) {
 | 
	
		
			
				|  |  | +            $this->error('请先实名认证通过');
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 |