旭晓耿 5 years ago
parent
commit
96f95b9480
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      application/admin/controller/ApiCommon.php

+ 1
- 1
application/admin/controller/ApiCommon.php View File

@@ -29,7 +29,7 @@ class ApiCommon extends Common
29 29
         $cache = cache('Auth_'.$authKey.$platform);         
30 30
 
31 31
         // 校验sessionid和authKey
32
-        if (empty($sessionId) || empty($authKey) || empty($cache) || ($cache['sessionId'] !== $sessionId)) {
32
+        if (empty($sessionId) || empty($authKey) || empty($cache)) {
33 33
             header('Content-Type:application/json; charset=utf-8');
34 34
             $dataTime=date('H:i',time());
35 35
             exit(json_encode(['code' => 302, 'data' => ['extra' => 1, 'extraTime' => $dataTime], 'msg' => '请先登录!']));