作者 lyh

gx

... ... @@ -226,7 +226,7 @@ class BTemplateLogic extends BaseLogic
public function saveCommonTemplate($param){
$templateCommonModel = new BTemplateCommon();
$info = $templateCommonModel->read(['template_id'=>$param['template_id'],'project_id'=>$this->user['project_id']]);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(characterTruncation($param['html'],'/<link id="google-fonts-link"\b[^>]*>(.*?)</header>/s'), true) . PHP_EOL, FILE_APPEND);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(characterTruncation($param['html'],'/<link id="google-fonts-link"\b[^>]*>(.*?)<header/s'), true) . PHP_EOL, FILE_APPEND);
$data = [
'head_html'=>$param['head_html'],
'head_css'=>$param['head_css'],
... ...