正在显示
1 个修改的文件
包含
0 行增加
和
9 行删除
| @@ -226,15 +226,6 @@ class BTemplateLogic extends BaseLogic | @@ -226,15 +226,6 @@ class BTemplateLogic extends BaseLogic | ||
| 226 | public function saveCommonTemplate($param){ | 226 | public function saveCommonTemplate($param){ |
| 227 | $templateCommonModel = new BTemplateCommon(); | 227 | $templateCommonModel = new BTemplateCommon(); |
| 228 | $info = $templateCommonModel->read(['template_id'=>$param['template_id'],'project_id'=>$this->user['project_id']]); | 228 | $info = $templateCommonModel->read(['template_id'=>$param['template_id'],'project_id'=>$this->user['project_id']]); |
| 229 | - $pattern = '/<link id="google-fonts-link"[^<]*<header/'; | ||
| 230 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($param['html'], true) . PHP_EOL, FILE_APPEND); | ||
| 231 | - if (preg_match($pattern, $param['html'], $matches)) { | ||
| 232 | - $result = $matches[0]; | ||
| 233 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($result, true) . PHP_EOL, FILE_APPEND); | ||
| 234 | - } else { | ||
| 235 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(222222222, true) . PHP_EOL, FILE_APPEND); | ||
| 236 | - } | ||
| 237 | - die(); | ||
| 238 | $data = [ | 229 | $data = [ |
| 239 | 'head_html'=>$param['head_html'], | 230 | 'head_html'=>$param['head_html'], |
| 240 | 'head_css'=>$param['head_css'], | 231 | 'head_css'=>$param['head_css'], |
-
请 注册 或 登录 后发表评论