正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -90,6 +90,7 @@ class CustomTemplateLogic extends BaseLogic | @@ -90,6 +90,7 @@ class CustomTemplateLogic extends BaseLogic | ||
| 90 | $html = $this->param['html']; | 90 | $html = $this->param['html']; |
| 91 | $this->saveCommonTemplate($html); | 91 | $this->saveCommonTemplate($html); |
| 92 | $this->param['html'] = characterTruncation($html,'/<main>(.*?)<\/main>/s'); | 92 | $this->param['html'] = characterTruncation($html,'/<main>(.*?)<\/main>/s'); |
| 93 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->param['html'], true) . PHP_EOL, FILE_APPEND); | ||
| 93 | $this->param['html_style'] = characterTruncation($html,'/<style id="globalsojs-styles">(.*?)<\/style>/s'); | 94 | $this->param['html_style'] = characterTruncation($html,'/<style id="globalsojs-styles">(.*?)<\/style>/s'); |
| 94 | $rs = $this->model->edit($this->param,['id'=>$this->param['id']]); | 95 | $rs = $this->model->edit($this->param,['id'=>$this->param['id']]); |
| 95 | if($rs === false){ | 96 | if($rs === false){ |
-
请 注册 或 登录 后发表评论