Mike 4 年之前
父节点
当前提交
3f1ada7457
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7 7
      app/Models/User.php

+ 7 - 7
app/Models/User.php

@@ -46,12 +46,12 @@ class User extends BaseModel
         }
         }
 
 
         $arr = aes_decrypt($auth);
         $arr = aes_decrypt($auth);
-        if (empty($arr['id'])) {
-            if (!$is_exit) {
-                return [];
-            }
-            exit_out(null, 401, '账号验证失效,请重新登录');
-        }
+//        if (empty($arr['id'])) {
+//            if (!$is_exit) {
+//                return [];
+//            }
+//            exit_out(null, 401, '账号验证失效,请重新登录');
+//        }
         if (isset($arr['doctor_id'])){
         if (isset($arr['doctor_id'])){
             // 说明是医生登陆!
             // 说明是医生登陆!
             if (empty($arr['doctor_id'])) {
             if (empty($arr['doctor_id'])) {
@@ -71,7 +71,7 @@ class User extends BaseModel
 
 
         }else{
         }else{
             if (empty($arr['id'])) {
             if (empty($arr['id'])) {
-                exit_out(null, 401, '证失效,请重新登录');
+                exit_out(null, 401, '账号验证失效,请重新登录');
             }
             }
 
 
             $user = User::where('id', $arr['id'])->first();
             $user = User::where('id', $arr['id'])->first();