From 0c477cd6ad40866b8bf8df7180c097a672c7459f Mon Sep 17 00:00:00 2001 From: augushong Date: Tue, 19 Jul 2022 11:54:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DauthCache=E7=9A=84tag?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E6=8B=BC=E6=8E=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/command/admin/Version.php | 6 ++---- app/common/provider/db/Query.php | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/app/common/command/admin/Version.php b/app/common/command/admin/Version.php index 4d3ade8..ac40c8e 100644 --- a/app/common/command/admin/Version.php +++ b/app/common/command/admin/Version.php @@ -14,12 +14,10 @@ use think\facade\App; class Version extends Command { - const VERSION = 'v2.0.8'; + const VERSION = 'v2.0.9'; const COMMENT = [ - '优化curd命令的调用方式', - '调整后台工作台内容', - '优化版本命令代码', + '修复authCache的tag缓存拼接问题', ]; diff --git a/app/common/provider/db/Query.php b/app/common/provider/db/Query.php index d928155..10f610e 100644 --- a/app/common/provider/db/Query.php +++ b/app/common/provider/db/Query.php @@ -28,7 +28,7 @@ class Query extends DbQuery if (is_null($key)) { $key = $this->getOptionsMd5(); } - + if (!is_null($field_key_value)) { $key = $key . '_' . $field_key_value; } @@ -36,14 +36,14 @@ class Query extends DbQuery if (!is_null($tag)) { - if (!is_null($field_key_value)) { + if (!is_null($field_tag_value)) { $tag = $tag . '_' . $field_tag_value; } $tag = $table_name . '_' . $tag; } - if(Env::get('app.auto_cache_log')){ + if (Env::get('app.auto_cache_log')) { Log::debug('use auto cache:' . $key); Log::debug('use auto cache tag:' . $tag); }