作者 lyh

gx

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