正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -277,8 +277,8 @@ class BTemplateLogic extends BaseLogic | @@ -277,8 +277,8 @@ 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 | - characterTruncation($param['html'],'/<footer\b[^>]*>(.*?)<\/footer>/s'); | ||
| 281 | - $other = str_replace('<header','',characterTruncation($param['html'],'/<link id="google-fonts-link"\b[^>]*>(.*?)<body\b[^>]*>/s')); | 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')); | ||
| 282 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export($other, true) . PHP_EOL, FILE_APPEND); | 282 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export($other, true) . PHP_EOL, FILE_APPEND); |
| 283 | if($info === false){ | 283 | if($info === false){ |
| 284 | $data['template_id'] = $param['template_id']; | 284 | $data['template_id'] = $param['template_id']; |
-
请 注册 或 登录 后发表评论