正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -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']]); |
-
请 注册 或 登录 后发表评论