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