作者 lyh

gx

... ... @@ -112,10 +112,10 @@ class CustomTemplateLogic extends BaseLogic
*/
public function saveCommonTemplate($html){
$type = $this->getType();
$templateCommonModel = new BTemplateCommon();
//获取设置的默认模版
$bSettingModel = new Setting();
$bSettingInfo = $bSettingModel->read(['project_id'=>$this->user['project_id']]);
$templateCommonModel = new BTemplateCommon();
$info = $templateCommonModel->read(['template_id'=>$bSettingInfo['template_id'],'project_id'=>$this->user['project_id'],'type'=>$type]);
$data = [
'head_html'=>characterTruncation($html,'/<header\b[^>]*>(.*?)<\/header>/s'),
... ...