作者 lyh

gx

@@ -113,7 +113,7 @@ class CustomTemplateLogic extends BaseLogic @@ -113,7 +113,7 @@ class CustomTemplateLogic extends BaseLogic
113 $this->param['html_style'] = characterTruncation($html,'/<style id="globalsojs-styles">(.*?)<\/style>/s'); 113 $this->param['html_style'] = characterTruncation($html,'/<style id="globalsojs-styles">(.*?)<\/style>/s');
114 $this->setTemplateLog($bSettingInfo['template_id'],$html,$this->param['id']); 114 $this->setTemplateLog($bSettingInfo['template_id'],$html,$this->param['id']);
115 } 115 }
116 - $rs = $this->model->edit($this->param,['id'=>$this->param['id']]); 116 + $rs = $this->model->edit($this->param,['id'=>$this->param['id'],'project_id'=>$this->user['project_id']]);
117 if($rs === false){ 117 if($rs === false){
118 $this->fail('系统错误,请联系管理'); 118 $this->fail('系统错误,请联系管理');
119 } 119 }
@@ -176,7 +176,7 @@ class CustomTemplateLogic extends BaseLogic @@ -176,7 +176,7 @@ class CustomTemplateLogic extends BaseLogic
176 $data['type'] = $type; 176 $data['type'] = $type;
177 $templateCommonModel->add($data); 177 $templateCommonModel->add($data);
178 }else{ 178 }else{
179 - $templateCommonModel->edit($data,['id'=>$info['id'],'project_id'=>$this->user['project_id']]); 179 + $templateCommonModel->edit($data,['id'=>$info['id']]);
180 } 180 }
181 //更新所有界面的other 181 //更新所有界面的other
182 $templateCommonModel->edit(['other'=>$other],['project_id'=>$this->user['project_id']]); 182 $templateCommonModel->edit(['other'=>$other],['project_id'=>$this->user['project_id']]);