作者 lyh

gx

@@ -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'];