作者 lyh

gx

@@ -282,7 +282,7 @@ class VisualizationLogic extends BaseLogic @@ -282,7 +282,7 @@ class VisualizationLogic extends BaseLogic
282 } 282 }
283 $page_array = (array)$this->user['is_visualization']->page_array; 283 $page_array = (array)$this->user['is_visualization']->page_array;
284 $type = $this->getType($this->param['source'],$this->param['source_id']); 284 $type = $this->getType($this->param['source'],$this->param['source_id']);
285 -// try { 285 + try {
286 if(in_array($type,$page_array)){//定制页面 286 if(in_array($type,$page_array)){//定制页面
287 $bTemplateModel = new BTemplate(); 287 $bTemplateModel = new BTemplate();
288 $templateInfo = $bTemplateModel->read([ 288 $templateInfo = $bTemplateModel->read([
@@ -319,9 +319,9 @@ class VisualizationLogic extends BaseLogic @@ -319,9 +319,9 @@ class VisualizationLogic extends BaseLogic
319 $this->setTemplateLog($this->param['template_id'],$this->param['html'],$this->param['source'],$this->param['source_id']); 319 $this->setTemplateLog($this->param['template_id'],$this->param['html'],$this->param['source'],$this->param['source_id']);
320 $this->homeOrProduct($this->param['source'],$this->param['source_id']); 320 $this->homeOrProduct($this->param['source'],$this->param['source_id']);
321 } 321 }
322 -// }catch (\Exception $e){  
323 -// $this->fail('系统错误,请联系管理员');  
324 -// } 322 + }catch (\Exception $e){
  323 + $this->fail('系统错误,请联系管理员');
  324 + }
325 return $this->success(); 325 return $this->success();
326 326
327 } 327 }
@@ -357,7 +357,7 @@ class VisualizationLogic extends BaseLogic @@ -357,7 +357,7 @@ class VisualizationLogic extends BaseLogic
357 $newsInfo = $newsModel->read(['id'=>$source_id],['url']); 357 $newsInfo = $newsModel->read(['id'=>$source_id],['url']);
358 $route = $newsInfo['url']; 358 $route = $newsInfo['url'];
359 }else{ 359 }else{
360 - $type = 0; 360 + $type = 'all';
361 $route = 'all'; 361 $route = 'all';
362 } 362 }
363 } 363 }