Explorar o código

JWT 测试环境

gorden hai 7 meses
pai
achega
cf44112714
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      config/plugin/tinywan/jwt/app.php

+ 1 - 1
config/plugin/tinywan/jwt/app.php

@@ -26,7 +26,7 @@ return [
         // 缓存令牌时间,单位:秒。默认 7 天
         'cache_token_ttl' => 604800,
         // 缓存令牌前缀
-        'cache_token_pre' => 'JWT:TOKEN:',
+        'cache_token_pre' => 'JWT:TOKEN:'.getenv('JWT_ENV'),
         // 刷新缓存令牌前缀
 //        'cache_refresh_token_pre' => 'JWT:TOKEN:REFRESH:',
         // 用户信息模型