作者 lyh

gx

... ... @@ -226,15 +226,6 @@ 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']]);
$pattern = '/<link id="google-fonts-link"[^<]*<header/';
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($param['html'], true) . PHP_EOL, FILE_APPEND);
if (preg_match($pattern, $param['html'], $matches)) {
$result = $matches[0];
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($result, true) . PHP_EOL, FILE_APPEND);
} else {
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(222222222, true) . PHP_EOL, FILE_APPEND);
}
die();
$data = [
'head_html'=>$param['head_html'],
'head_css'=>$param['head_css'],
... ...