正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
| @@ -59,10 +59,9 @@ class CustomTemplateLogic extends BaseLogic | @@ -59,10 +59,9 @@ class CustomTemplateLogic extends BaseLogic | ||
| 59 | public function customTemplateSave(){ | 59 | public function customTemplateSave(){ |
| 60 | if(isset($this->param['id']) && !empty($this->param['id'])){ | 60 | if(isset($this->param['id']) && !empty($this->param['id'])){ |
| 61 | if(isset($this->param['html']) && !empty($this->param['html'])){ | 61 | if(isset($this->param['html']) && !empty($this->param['html'])){ |
| 62 | - $this->param['html'] = characterTruncation($this->param['html'],'/<main>(.*?)<\/main>/s'); | ||
| 63 | - $this->param['html_style'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-styles">(.*?)<\/style>/s'); | ||
| 64 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->param['html_style'], true) . PHP_EOL, FILE_APPEND); | ||
| 65 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->param['html'], true) . PHP_EOL, FILE_APPEND); | 62 | + $html = $this->param['html']; |
| 63 | + $this->param['html'] = characterTruncation($html,'/<main>(.*?)<\/main>/s'); | ||
| 64 | + $this->param['html_style'] = characterTruncation($html,'/<style id="vvvebjs-styles">(.*?)<\/style>/s'); | ||
| 66 | } | 65 | } |
| 67 | $rs = $this->model->edit($this->param,['id'=>$this->param['id']]); | 66 | $rs = $this->model->edit($this->param,['id'=>$this->param['id']]); |
| 68 | }else{ | 67 | }else{ |
-
请 注册 或 登录 后发表评论