修正 key

This commit is contained in:
liyukun 2021-11-12 00:57:33 +08:00
parent 415cafb3b5
commit 32b52bc545
1 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ use app\common\model\FriendLink as friendLinkModel;
use app\common\validate\MessageForm as MessageformValidate;
use app\common\model\MessageForm as MessageFormModel;
use app\Request;
use app\common\constant\Config;
/**
* 应用入口
@ -25,7 +26,7 @@ class Index extends Base
$this->urlrecord('网站首页');
}
//清除可能存在的栏目分类树id
cache('curr_category_patent_id',false);
cache(Config::CURR_CATEGORY_PATENT_ID,false);
//模板兼容性标签
$this->assign('id',false);
$this->assign('cid',false);
@ -69,7 +70,7 @@ class Index extends Base
}
} else {
//清除可能存在的栏目分类树id
cache('curr_category_patent_id',false);
cache(Config::CURR_CATEGORY_PATENT_ID,false);
//模板兼容性标签
$this->assign('id',false);
$this->assign('cid',false);
@ -109,7 +110,7 @@ class Index extends Base
}
} else {
//清除可能存在的栏目分类树id
cache('curr_category_patent_id',false);
cache(Config::CURR_CATEGORY_PATENT_ID,false);
//模板兼容性标签
$this->assign('id',false);
$this->assign('cid',false);