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

+ 5 - 2
application/api/controller/Login.php

@@ -185,9 +185,12 @@ class Login extends Controller{
         $in_data['id_code'] = $id_code;
         $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');
-            }else{
+            }elseif ($user_info['status'] ==0){
+                $this->error('审核中','','400');
+            }
+            else{
                 $token_arr = [
                     'time' => Config('jwt_time')+time(),
                     'uid'=>$user_info['id'],