zhangguidong 2 rokov pred
rodič
commit
397e0a615d

+ 3 - 3
app/data/controller/api/business/Login.php

@@ -34,9 +34,9 @@ class Login extends Controller
         $password = input('password','');
         $code = input('code','');
         $user = SystemUser::mk()->where('username|contact_phone',$data['mobile'])->find();
-        if($user && !$user->merchant){
-            $this->error('您不是商家无法登录');
-        }
+//        if($user && !$user->merchant){
+//            $this->error('您不是商家无法登录');
+//        }
         if($data['type']==1){
             if(empty($user)){
                 $this->error('用户名或手机号不正确');