正在显示
1 个修改的文件
包含
5 行增加
和
12 行删除
| @@ -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']; | ||
| 460 | - } | ||
| 461 | return $this->success($data); | 456 | return $this->success($data); |
| 462 | } | 457 | } |
| 458 | + }else{ | ||
| 463 | $type = $this->getCustomizedType($source, $is_list);//获取定制界面类型 | 459 | $type = $this->getCustomizedType($source, $is_list);//获取定制界面类型 |
| 464 | //查看当前页面是否定制,是否开启可视化 | 460 | //查看当前页面是否定制,是否开启可视化 |
| 465 | $page_array = (array)$this->user['is_visualization']->page_array;//获取所有定制界面 | 461 | $page_array = (array)$this->user['is_visualization']->page_array;//获取所有定制界面 |
| 466 | if (in_array($type, $page_array)) {//当前页面是定制界面 | 462 | if (in_array($type, $page_array)) {//当前页面是定制界面 |
| 467 | $data['html'] = $html; | 463 | $data['html'] = $html; |
| 468 | $data['type'] = BTemplate::ALL_HTML; | 464 | $data['type'] = BTemplate::ALL_HTML; |
| 469 | - }else{ | ||
| 470 | - $mainInfo = $this->handleTemplateHtml($html); | ||
| 471 | - $data['main_html'] = $mainInfo['main_html']; | ||
| 472 | - $data['main_css'] = $mainInfo['main_css']; | 465 | + return $this->success($data); |
| 466 | + } | ||
| 467 | + } | ||
| 473 | } | 468 | } |
| 474 | - }else{ | ||
| 475 | $mainInfo = $this->handleTemplateHtml($html); | 469 | $mainInfo = $this->handleTemplateHtml($html); |
| 476 | $data['main_html'] = $mainInfo['main_html']; | 470 | $data['main_html'] = $mainInfo['main_html']; |
| 477 | $data['main_css'] = $mainInfo['main_css']; | 471 | $data['main_css'] = $mainInfo['main_css']; |
| 478 | - } | ||
| 479 | - return $data; | 472 | + return $this->success($data); |
| 480 | } | 473 | } |
| 481 | 474 | ||
| 482 | /** | 475 | /** |
-
请 注册 或 登录 后发表评论