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