作者 lyh

gx

@@ -453,30 +453,23 @@ class BTemplateLogic extends BaseLogic @@ -453,30 +453,23 @@ class BTemplateLogic extends BaseLogic
453 if($info['list_customized'] == BTemplate::IS_VISUALIZATION || $info['detail_customized'] == BTemplate::IS_VISUALIZATION) { 453 if($info['list_customized'] == BTemplate::IS_VISUALIZATION || $info['detail_customized'] == BTemplate::IS_VISUALIZATION) {
454 $data['html'] = $html; 454 $data['html'] = $html;
455 $data['type'] = BTemplate::ALL_HTML; 455 $data['type'] = BTemplate::ALL_HTML;
456 - }else{  
457 - $mainInfo = $this->handleTemplateHtml($html);  
458 - $data['main_html'] = $mainInfo['main_html'];  
459 - $data['main_css'] = $mainInfo['main_css']; 456 + return $this->success($data);
460 } 457 }
461 - return $this->success($data);  
462 - }  
463 - $type = $this->getCustomizedType($source, $is_list);//获取定制界面类型  
464 - //查看当前页面是否定制,是否开启可视化  
465 - $page_array = (array)$this->user['is_visualization']->page_array;//获取所有定制界面  
466 - if (in_array($type, $page_array)) {//当前页面是定制界面  
467 - $data['html'] = $html;  
468 - $data['type'] = BTemplate::ALL_HTML;  
469 }else{ 458 }else{
470 - $mainInfo = $this->handleTemplateHtml($html);  
471 - $data['main_html'] = $mainInfo['main_html'];  
472 - $data['main_css'] = $mainInfo['main_css']; 459 + $type = $this->getCustomizedType($source, $is_list);//获取定制界面类型
  460 + //查看当前页面是否定制,是否开启可视化
  461 + $page_array = (array)$this->user['is_visualization']->page_array;//获取所有定制界面
  462 + if (in_array($type, $page_array)) {//当前页面是定制界面
  463 + $data['html'] = $html;
  464 + $data['type'] = BTemplate::ALL_HTML;
  465 + return $this->success($data);
  466 + }
473 } 467 }
474 - }else{  
475 - $mainInfo = $this->handleTemplateHtml($html);  
476 - $data['main_html'] = $mainInfo['main_html'];  
477 - $data['main_css'] = $mainInfo['main_css'];  
478 } 468 }
479 - return $data; 469 + $mainInfo = $this->handleTemplateHtml($html);
  470 + $data['main_html'] = $mainInfo['main_html'];
  471 + $data['main_css'] = $mainInfo['main_css'];
  472 + return $this->success($data);
480 } 473 }
481 474
482 /** 475 /**