|
@@ -122,8 +122,8 @@ class CustomTemplateLogic extends BaseLogic |
|
@@ -122,8 +122,8 @@ class CustomTemplateLogic extends BaseLogic |
|
122
|
'head_css'=>characterTruncation($html,'/<style id="globalsojs-header">(.*?)<\/style>/s'),
|
122
|
'head_css'=>characterTruncation($html,'/<style id="globalsojs-header">(.*?)<\/style>/s'),
|
|
123
|
'footer_html'=>characterTruncation($html,'/<footer\b[^>]*>(.*?)<\/footer>/s'),
|
123
|
'footer_html'=>characterTruncation($html,'/<footer\b[^>]*>(.*?)<\/footer>/s'),
|
|
124
|
'footer_css'=>characterTruncation($html,'/<style id="globalsojs-footer">(.*?)<\/style>/s'),
|
124
|
'footer_css'=>characterTruncation($html,'/<style id="globalsojs-footer">(.*?)<\/style>/s'),
|
|
125
|
- 'other'=>str_replace('<header','',characterTruncation($html,"/<link id=\"google-fonts-link\"(.*?)<header/s")),
|
|
|
|
126
|
];
|
125
|
];
|
|
|
|
126
|
+ $other = str_replace('<header','',characterTruncation($html,"/<link id=\"google-fonts-link\"(.*?)<header/s"));
|
|
127
|
if($info === false){
|
127
|
if($info === false){
|
|
128
|
$data['template_id'] = $bSettingInfo['template_id'];
|
128
|
$data['template_id'] = $bSettingInfo['template_id'];
|
|
129
|
$data['project_id'] = $this->user['project_id'];
|
129
|
$data['project_id'] = $this->user['project_id'];
|
|
@@ -132,6 +132,8 @@ class CustomTemplateLogic extends BaseLogic |
|
@@ -132,6 +132,8 @@ class CustomTemplateLogic extends BaseLogic |
|
132
|
}else{
|
132
|
}else{
|
|
133
|
$templateCommonModel->edit($data,['id'=>$info['id']]);
|
133
|
$templateCommonModel->edit($data,['id'=>$info['id']]);
|
|
134
|
}
|
134
|
}
|
|
|
|
135
|
+ //更新所有界面的other
|
|
|
|
136
|
+ $templateCommonModel->edit(['other'=>$other],['project_id'=>$this->user['project_id']]);
|
|
135
|
return $this->success();
|
137
|
return $this->success();
|
|
136
|
}
|
138
|
}
|
|
137
|
|
139
|
|