|
...
|
...
|
@@ -282,7 +282,7 @@ class VisualizationLogic extends BaseLogic |
|
|
|
}
|
|
|
|
$page_array = (array)$this->user['is_visualization']->page_array;
|
|
|
|
$type = $this->getType($this->param['source'],$this->param['source_id']);
|
|
|
|
// try {
|
|
|
|
try {
|
|
|
|
if(in_array($type,$page_array)){//定制页面
|
|
|
|
$bTemplateModel = new BTemplate();
|
|
|
|
$templateInfo = $bTemplateModel->read([
|
|
...
|
...
|
@@ -319,9 +319,9 @@ class VisualizationLogic extends BaseLogic |
|
|
|
$this->setTemplateLog($this->param['template_id'],$this->param['html'],$this->param['source'],$this->param['source_id']);
|
|
|
|
$this->homeOrProduct($this->param['source'],$this->param['source_id']);
|
|
|
|
}
|
|
|
|
// }catch (\Exception $e){
|
|
|
|
// $this->fail('系统错误,请联系管理员');
|
|
|
|
// }
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->fail('系统错误,请联系管理员');
|
|
|
|
}
|
|
|
|
return $this->success();
|
|
|
|
|
|
|
|
}
|
|
...
|
...
|
@@ -357,7 +357,7 @@ class VisualizationLogic extends BaseLogic |
|
|
|
$newsInfo = $newsModel->read(['id'=>$source_id],['url']);
|
|
|
|
$route = $newsInfo['url'];
|
|
|
|
}else{
|
|
|
|
$type = 0;
|
|
|
|
$type = 'all';
|
|
|
|
$route = 'all';
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|