正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -227,6 +227,7 @@ class BTemplateLogic extends BaseLogic | @@ -227,6 +227,7 @@ class BTemplateLogic extends BaseLogic | ||
| 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/'; | 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); | ||
| 230 | if (preg_match($pattern, $param['html'], $matches)) { | 231 | if (preg_match($pattern, $param['html'], $matches)) { |
| 231 | $result = $matches[0]; | 232 | $result = $matches[0]; |
| 232 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export($result, true) . PHP_EOL, FILE_APPEND); | 233 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export($result, true) . PHP_EOL, FILE_APPEND); |
| @@ -308,7 +309,6 @@ class BTemplateLogic extends BaseLogic | @@ -308,7 +309,6 @@ class BTemplateLogic extends BaseLogic | ||
| 308 | */ | 309 | */ |
| 309 | public function templateSaveParam($param){ | 310 | public function templateSaveParam($param){ |
| 310 | $param['project_id'] = $this->user['project_id']; | 311 | $param['project_id'] = $this->user['project_id']; |
| 311 | - $param['html'] = $param['main_html']; | ||
| 312 | return $this->success($param); | 312 | return $this->success($param); |
| 313 | } | 313 | } |
| 314 | 314 |
-
请 注册 或 登录 后发表评论