From 32b52bc54557acc274ccb6f53ea2873c3827d33a Mon Sep 17 00:00:00 2001 From: liyukun <1099438829@qq.com> Date: Fri, 12 Nov 2021 00:57:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/controller/Index.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index 8d43a23..478c748 100644 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -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);