作者 lyh

gx

... ... @@ -277,8 +277,8 @@ class BTemplateLogic extends BaseLogic
'footer_html'=>$param['footer_html'],
'footer_css'=>$param['footer_css'],
];
characterTruncation($param['html'],'/<footer\b[^>]*>(.*?)<\/footer>/s');
$other = str_replace('<header','',characterTruncation($param['html'],'/<link id="google-fonts-link"\b[^>]*>(.*?)<body\b[^>]*>/s'));
@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'];
... ...