From 78bec72feac1eb4b726dd8ad95e846b987f13bea Mon Sep 17 00:00:00 2001 From: gzuliyujiang Date: Wed, 20 Jan 2021 16:17:39 +0800 Subject: [PATCH 1/2] Fix file cache error; Allow access index page while no token; --- config/cache.php | 2 +- config/index.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/cache.php b/config/cache.php index 7f732a4..be9d044 100644 --- a/config/cache.php +++ b/config/cache.php @@ -17,7 +17,7 @@ return [ // 缓存保存目录 'path' => '', // 缓存前缀 - 'prefix' => 'yyl:', + 'prefix' => 'yyl', // 缓存有效期 0表示永久缓存 'expire' => 0, // 缓存标签前缀 diff --git a/config/index.php b/config/index.php index 5c12469..e0ce313 100644 --- a/config/index.php +++ b/config/index.php @@ -11,6 +11,8 @@ return [ 'is_log' => true, // 接口白名单 'whitelist' => [ + 'index/', + 'index/Index/index', 'index/Register/register', 'index/Login/verify', 'index/Login/login', -- Gitee From 6740da32eadf6e83b5e0ef58cf4cc960c166fad5 Mon Sep 17 00:00:00 2001 From: gzuliyujiang Date: Wed, 20 Jan 2021 17:08:58 +0800 Subject: [PATCH 2/2] Allow access index page while no token; --- config/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/config/index.php b/config/index.php index e0ce313..3e109b0 100644 --- a/config/index.php +++ b/config/index.php @@ -12,6 +12,7 @@ return [ // 接口白名单 'whitelist' => [ 'index/', + 'index/Index/', 'index/Index/index', 'index/Register/register', 'index/Login/verify', -- Gitee