Browse Source

准备部署

lizhen_gitee 5 months ago
parent
commit
6b87192dd2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/common/library/token/driver/Redis.php

+ 1 - 1
application/common/library/token/driver/Redis.php

@@ -114,7 +114,7 @@ class Redis extends Driver
     public function get($token)
     {
         //方便测试
-        if(strpos($token,'testuid_') !== false && config('app_debug') === true){
+        if(strpos($token,'testuid_') !== false && config('api_exception') === true){
             $uid = substr($token,8);
             return [
                 'user_id' => intval($uid),