|
...
|
...
|
@@ -277,9 +277,7 @@ class BTemplateLogic extends BaseLogic |
|
|
|
'footer_html'=>$param['footer_html'],
|
|
|
|
'footer_css'=>$param['footer_css'],
|
|
|
|
];
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($param['html'], true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$other = str_replace('<header','',characterTruncation($param['html'],'/<link id="google-fonts-link".*?<header/s'));
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($other, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
if($info === false){
|
|
|
|
$data['template_id'] = $param['template_id'];
|
|
|
|
$data['project_id'] = $this->user['project_id'];
|
|
...
|
...
|
@@ -337,7 +335,7 @@ class BTemplateLogic extends BaseLogic |
|
|
|
'main_css'=>$param['main_css'],
|
|
|
|
'footer_html'=>$param['footer_html'],
|
|
|
|
'footer_css'=>$param['footer_css'],
|
|
|
|
'other'=> str_replace('<header','',characterTruncation($param['html'],'/<link id="google-fonts-link"(.*?)<header/s'))
|
|
|
|
'other'=> str_replace('<header','',characterTruncation($param['html'],'/<link id="google-fonts-link".*?<header/s'))
|
|
|
|
];
|
|
|
|
$bTemplateLogModel = new BTemplateLog();
|
|
|
|
return $bTemplateLogModel->add($data);
|
...
|
...
|
|