mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 19:42:47 +08:00
修复authCache的tag缓存拼接问题
This commit is contained in:
@@ -14,12 +14,10 @@ use think\facade\App;
|
|||||||
class Version extends Command
|
class Version extends Command
|
||||||
{
|
{
|
||||||
|
|
||||||
const VERSION = 'v2.0.8';
|
const VERSION = 'v2.0.9';
|
||||||
|
|
||||||
const COMMENT = [
|
const COMMENT = [
|
||||||
'优化curd命令的调用方式',
|
'修复authCache的tag缓存拼接问题',
|
||||||
'调整后台工作台内容',
|
|
||||||
'优化版本命令代码',
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class Query extends DbQuery
|
|||||||
if (is_null($key)) {
|
if (is_null($key)) {
|
||||||
$key = $this->getOptionsMd5();
|
$key = $this->getOptionsMd5();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_null($field_key_value)) {
|
if (!is_null($field_key_value)) {
|
||||||
$key = $key . '_' . $field_key_value;
|
$key = $key . '_' . $field_key_value;
|
||||||
}
|
}
|
||||||
@@ -36,14 +36,14 @@ class Query extends DbQuery
|
|||||||
|
|
||||||
if (!is_null($tag)) {
|
if (!is_null($tag)) {
|
||||||
|
|
||||||
if (!is_null($field_key_value)) {
|
if (!is_null($field_tag_value)) {
|
||||||
$tag = $tag . '_' . $field_tag_value;
|
$tag = $tag . '_' . $field_tag_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
$tag = $table_name . '_' . $tag;
|
$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:' . $key);
|
||||||
Log::debug('use auto cache tag:' . $tag);
|
Log::debug('use auto cache tag:' . $tag);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user