|
...
|
...
|
@@ -175,6 +175,7 @@ class VisualizationLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function saveHtml(){
|
|
|
|
$page_array = $this->user['is_visualization']['page_array'];
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($page_array, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$type = $this->getType($this->param['source'],$this->param['source_id']);
|
|
|
|
if(in_array($type,$page_array)){//定制页面
|
|
|
|
$bTemplateModel = new BTemplate();
|
|
...
|
...
|
@@ -199,7 +200,7 @@ class VisualizationLogic extends BaseLogic |
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
|
|
|
$bTemplateModel->add($this->param);
|
|
|
|
}else{
|
|
|
|
$bTemplateModel->edit(['html'=>$this->param['html']],['source'=>$this->param['source'],'source_id'=>$this->param['source_id']]);
|
|
|
|
$bTemplateModel->edit($this->param,['source'=>$this->param['source'],'source_id'=>$this->param['source_id']]);
|
|
|
|
}
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->fail('系统错误请联系管理员');
|
...
|
...
|
|