|
@@ -66,8 +66,8 @@ class BTemplateLogic extends BaseLogic |
|
@@ -66,8 +66,8 @@ class BTemplateLogic extends BaseLogic |
|
66
|
//获取模板详情
|
66
|
//获取模板详情
|
|
67
|
$ATemplateModel = new Template();
|
67
|
$ATemplateModel = new Template();
|
|
68
|
$TemplateInfo = $ATemplateModel->read(['id'=>$info['template_id']]);
|
68
|
$TemplateInfo = $ATemplateModel->read(['id'=>$info['template_id']]);
|
|
69
|
- $TemplateInfo['html'] = $this->getHeadFooter($TemplateInfo['html']);
|
|
|
|
70
|
}
|
69
|
}
|
|
|
|
70
|
+ $TemplateInfo['html'] = $this->getHeadFooter($TemplateInfo['html']);
|
|
71
|
}
|
71
|
}
|
|
72
|
return $this->success($TemplateInfo);
|
72
|
return $this->success($TemplateInfo);
|
|
73
|
}
|
73
|
}
|
|
@@ -145,7 +145,7 @@ class BTemplateLogic extends BaseLogic |
|
@@ -145,7 +145,7 @@ class BTemplateLogic extends BaseLogic |
|
145
|
//同步数据
|
145
|
//同步数据
|
|
146
|
$this->param['name'] = $TemplateInfo['name'];
|
146
|
$this->param['name'] = $TemplateInfo['name'];
|
|
147
|
$this->param['image'] = $TemplateInfo['image'];
|
147
|
$this->param['image'] = $TemplateInfo['image'];
|
|
148
|
- $this->param['html'] = $this->getHeadFooter(characterTruncation($this->param['html'],'/<style id="vvvebjs-header">(.*?)<\/footer>/s'));
|
148
|
+ $this->param['html'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-header">(.*?)<\/footer>/s');
|
|
149
|
return true;
|
149
|
return true;
|
|
150
|
}
|
150
|
}
|
|
151
|
|
151
|
|