作者 lyh

gx

... ... @@ -85,7 +85,7 @@ class BTemplateLogic extends BaseLogic
}else{
if($templateInfo['type'] == BTemplate::ALL_HTML){//返回整个html代码
$type = $this->getCustomizedType($source, $source_id);//定制获取头部底部类型
$commonInfo = $this->getCommonPage(0,$this->user['project_id'],$type);//获取定制头部
$commonInfo = $this->getCommonPage($type,$this->user['project_id'],0);//获取定制头部
$html = $this->handleAllHtml($commonInfo,$templateInfo['html']);
return $this->success(['html'=>$html,'template_id'=>$template_id,'id'=>$templateInfo['id']]);
}
... ... @@ -541,7 +541,7 @@ class BTemplateLogic extends BaseLogic
public function homeOrProduct($source,$source_id = 0,$is_custom = 0){
if($is_custom == 0){
if($source == BTemplate::SOURCE_HOME){
$route = RouteMap::setRoute('index', RouteMap::SOURCE_PAGE, 0, $this->user['project_id']);
RouteMap::setRoute('index', RouteMap::SOURCE_PAGE, 0, $this->user['project_id']);
$type = RouteMap::SOURCE_PAGE;
}elseif($source == BTemplate::SOURCE_PRODUCT){
$type = RouteMap::SOURCE_PRODUCT;
... ...