作者 lyh

gx脚本

@@ -93,4 +93,9 @@ class TdkTest extends Command @@ -93,4 +93,9 @@ class TdkTest extends Command
93 } 93 }
94 } 94 }
95 } 95 }
  96 +
  97 + public function ceshi(){
  98 + //under_ceshi
  99 + $model = new Cesjo();
  100 + }
96 } 101 }
@@ -442,6 +442,24 @@ class BTemplateLogic extends BaseLogic @@ -442,6 +442,24 @@ class BTemplateLogic extends BaseLogic
442 */ 442 */
443 public function handleVisualizationParam($html,$source, $is_list,$is_custom,$data){ 443 public function handleVisualizationParam($html,$source, $is_list,$is_custom,$data){
444 if($this->user['is_customized'] == BTemplate::IS_VISUALIZATION){//定制项目 444 if($this->user['is_customized'] == BTemplate::IS_VISUALIZATION){//定制项目
  445 + //TODO::扩展模块定制单独处理
  446 + if($is_custom == BTemplate::IS_CUSTOM){
  447 + $customModuleModel = new CustomModule();
  448 + $info = $customModuleModel->read(['id'=>$source]);
  449 + if($info === false){
  450 + $this->fail('当前扩展模块不存在或已被删除');
  451 + }
  452 + //todo::扩展模块(列表页/详情页)定制
  453 + if($info['list_customized'] == BTemplate::IS_VISUALIZATION || $info['detail_customized'] == BTemplate::IS_VISUALIZATION) {
  454 + $data['html'] = $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);
  462 + }
445 $type = $this->getCustomizedType($source, $is_list);//获取定制界面类型 463 $type = $this->getCustomizedType($source, $is_list);//获取定制界面类型
446 //查看当前页面是否定制,是否开启可视化 464 //查看当前页面是否定制,是否开启可视化
447 $page_array = (array)$this->user['is_visualization']->page_array;//获取所有定制界面 465 $page_array = (array)$this->user['is_visualization']->page_array;//获取所有定制界面
@@ -449,19 +467,6 @@ class BTemplateLogic extends BaseLogic @@ -449,19 +467,6 @@ class BTemplateLogic extends BaseLogic
449 $data['html'] = $html; 467 $data['html'] = $html;
450 $data['type'] = BTemplate::ALL_HTML; 468 $data['type'] = BTemplate::ALL_HTML;
451 }else{ 469 }else{
452 - //TODO::扩展模块定制单独处理  
453 - if($is_custom == BTemplate::IS_CUSTOM){  
454 - $customModuleModel = new CustomModule();  
455 - $info = $customModuleModel->read(['id'=>$source]);  
456 - if($info === false){  
457 - $this->fail('当前扩展模块不存在或已被删除');  
458 - }  
459 - //todo::扩展模块(列表页/详情页)定制  
460 - if($info['list_customized'] == BTemplate::IS_VISUALIZATION || $info['detail_customized'] == BTemplate::IS_VISUALIZATION) {  
461 - $data['html'] = $html;  
462 - $data['type'] = BTemplate::ALL_HTML;  
463 - }  
464 - }  
465 $mainInfo = $this->handleTemplateHtml($html); 470 $mainInfo = $this->handleTemplateHtml($html);
466 $data['main_html'] = $mainInfo['main_html']; 471 $data['main_html'] = $mainInfo['main_html'];
467 $data['main_css'] = $mainInfo['main_css']; 472 $data['main_css'] = $mainInfo['main_css'];