作者 lyh

gx

@@ -62,7 +62,7 @@ class BTemplateLogic extends BaseLogic @@ -62,7 +62,7 @@ class BTemplateLogic extends BaseLogic
62 } 62 }
63 $TemplateInfo = []; 63 $TemplateInfo = [];
64 $key = 'template_'.$this->user['project_id'].'_'.$this->param['source'].'_'.$this->param['source_id']; 64 $key = 'template_'.$this->user['project_id'].'_'.$this->param['source'].'_'.$this->param['source_id'];
65 - if(!empty(Cache::add($key))){ 65 + if(!empty(Cache::get($key))){
66 $this->fail('当前页面正在装修中'); 66 $this->fail('当前页面正在装修中');
67 } 67 }
68 if($this->param['source'] == $this->model::SOURCE_HOME){//首页 68 if($this->param['source'] == $this->model::SOURCE_HOME){//首页