正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -112,10 +112,10 @@ class CustomTemplateLogic extends BaseLogic | @@ -112,10 +112,10 @@ class CustomTemplateLogic extends BaseLogic | ||
| 112 | */ | 112 | */ |
| 113 | public function saveCommonTemplate($html){ | 113 | public function saveCommonTemplate($html){ |
| 114 | $type = $this->getType(); | 114 | $type = $this->getType(); |
| 115 | - $templateCommonModel = new BTemplateCommon(); | ||
| 116 | //获取设置的默认模版 | 115 | //获取设置的默认模版 |
| 117 | $bSettingModel = new Setting(); | 116 | $bSettingModel = new Setting(); |
| 118 | $bSettingInfo = $bSettingModel->read(['project_id'=>$this->user['project_id']]); | 117 | $bSettingInfo = $bSettingModel->read(['project_id'=>$this->user['project_id']]); |
| 118 | + $templateCommonModel = new BTemplateCommon(); | ||
| 119 | $info = $templateCommonModel->read(['template_id'=>$bSettingInfo['template_id'],'project_id'=>$this->user['project_id'],'type'=>$type]); | 119 | $info = $templateCommonModel->read(['template_id'=>$bSettingInfo['template_id'],'project_id'=>$this->user['project_id'],'type'=>$type]); |
| 120 | $data = [ | 120 | $data = [ |
| 121 | 'head_html'=>characterTruncation($html,'/<header\b[^>]*>(.*?)<\/header>/s'), | 121 | 'head_html'=>characterTruncation($html,'/<header\b[^>]*>(.*?)<\/header>/s'), |
-
请 注册 或 登录 后发表评论