|  | @@ -61,7 +61,11 @@ class User extends Base
 | 
	
		
			
				|  |  |              //  验证是否 通过
 | 
	
		
			
				|  |  |              if ($isInspection->audit_status !== InspectionApplication::AUDIT_STATUS_PASSED) {
 | 
	
		
			
				|  |  |              $this->error('您的验货员申请未通过');
 | 
	
		
			
				|  |  | -            }           
 | 
	
		
			
				|  |  | +            } 
 | 
	
		
			
				|  |  | +            // 验证是否 绑定供应商
 | 
	
		
			
				|  |  | +            if (!$isInspection->supplier_id) {
 | 
	
		
			
				|  |  | +                $this->error('您未绑定供应商');
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |              //如果已经有账号则直接登录
 | 
	
		
			
				|  |  |              $ret = $this->auth->direct($user->id);
 | 
	
		
			
				|  |  |          }   
 |