作者 lyh

gx

... ... @@ -72,14 +72,14 @@ class BTemplateLogic extends BaseLogic
'project_id'=>$this->user['project_id'], 'source_id'=>$this->param['source_id'],
'is_custom'=>$is_custom, 'is_list'=>$is_list
]);
if($this->user['project_id'] == 214){
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($templateInfo, true) . PHP_EOL, FILE_APPEND);
}
if($templateInfo === false){
if($this->user['is_customized'] == BTemplate::IS_VISUALIZATION){//处理定制页面初始数据
$html = $this->isCustomizedPage($this->param['source'],$is_list);//获取定制页面的html
return $this->success(['html'=>$html,'template_id'=>$template_id]);
}
if($this->user['project_id'] == 214){
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(222222, true) . PHP_EOL, FILE_APPEND);
}
$mainInfo = $this->getMAinHtml($this->param['source'],$is_custom,$is_list);//获取中间部分代码
}else{
if($templateInfo['type'] == BTemplate::ALL_HTML){//返回整个html代码
... ...