wangxiaodong 3 years ago
parent
commit
1d92c146b3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      application/api/controller/Login.php

+ 3 - 1
application/api/controller/Login.php

@@ -42,8 +42,10 @@ class Login extends Controller{
         $in_data['phone'] = $data['phone'];
         $user_info = Db::table('dx_user')->where($in_data)->where('is_deleted',0)->find();
         if ($user_info){
-            if ($user_info['status'] !=1){
+            if ($user_info['status'] ==2){
                 $this->error('审核未通过','','400');
+            }elseif($user_info['status'] == 0){
+                $this->error('审核中','','400');
             }else{
                 $token_arr = [
                     'time' => Config('jwt_time')+time(),