正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -68,6 +68,7 @@ class BTemplateLogic extends BaseLogic | @@ -68,6 +68,7 @@ class BTemplateLogic extends BaseLogic | ||
| 68 | if($this->param['source'] == $this->model::SOURCE_PRODUCT){//产品页 | 68 | if($this->param['source'] == $this->model::SOURCE_PRODUCT){//产品页 |
| 69 | $TemplateInfo = $this->productHtml($info,$this->param['source'],$this->param['source_id']); | 69 | $TemplateInfo = $this->productHtml($info,$this->param['source'],$this->param['source_id']); |
| 70 | } | 70 | } |
| 71 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($TemplateInfo['html'], true) . PHP_EOL, FILE_APPEND); | ||
| 71 | return $this->success($TemplateInfo); | 72 | return $this->success($TemplateInfo); |
| 72 | } | 73 | } |
| 73 | 74 | ||
| @@ -110,7 +111,6 @@ class BTemplateLogic extends BaseLogic | @@ -110,7 +111,6 @@ class BTemplateLogic extends BaseLogic | ||
| 110 | $TemplateInfo['html'] = $commonInfo['head_css'].$TemplateInfo['main_css'].$commonInfo['footer_css'].$commonInfo['other']. | 111 | $TemplateInfo['html'] = $commonInfo['head_css'].$TemplateInfo['main_css'].$commonInfo['footer_css'].$commonInfo['other']. |
| 111 | $commonInfo['head_html'].$TemplateInfo['main_html'].$commonInfo['footer_html']; | 112 | $commonInfo['head_html'].$TemplateInfo['main_html'].$commonInfo['footer_html']; |
| 112 | } | 113 | } |
| 113 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($TemplateInfo['html'], true) . PHP_EOL, FILE_APPEND); | ||
| 114 | $ATemplateModel = new Template(); | 114 | $ATemplateModel = new Template(); |
| 115 | $ATemplateInfo = $ATemplateModel->read(['id'=>$info['template_id']],['name','image']); | 115 | $ATemplateInfo = $ATemplateModel->read(['id'=>$info['template_id']],['name','image']); |
| 116 | $TemplateInfo['name'] = $ATemplateInfo['name']; | 116 | $TemplateInfo['name'] = $ATemplateInfo['name']; |
-
请 注册 或 登录 后发表评论