소스 검색

准备部署

lizhen_gitee 5 달 전
부모
커밋
6b87192dd2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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),