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); }