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