正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -175,6 +175,7 @@ class VisualizationLogic extends BaseLogic | @@ -175,6 +175,7 @@ class VisualizationLogic extends BaseLogic | ||
| 175 | */ | 175 | */ |
| 176 | public function saveHtml(){ | 176 | public function saveHtml(){ |
| 177 | $page_array = $this->user['is_visualization']['page_array']; | 177 | $page_array = $this->user['is_visualization']['page_array']; |
| 178 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($page_array, true) . PHP_EOL, FILE_APPEND); | ||
| 178 | $type = $this->getType($this->param['source'],$this->param['source_id']); | 179 | $type = $this->getType($this->param['source'],$this->param['source_id']); |
| 179 | if(in_array($type,$page_array)){//定制页面 | 180 | if(in_array($type,$page_array)){//定制页面 |
| 180 | $bTemplateModel = new BTemplate(); | 181 | $bTemplateModel = new BTemplate(); |
| @@ -199,7 +200,7 @@ class VisualizationLogic extends BaseLogic | @@ -199,7 +200,7 @@ class VisualizationLogic extends BaseLogic | ||
| 199 | $this->param['project_id'] = $this->user['project_id']; | 200 | $this->param['project_id'] = $this->user['project_id']; |
| 200 | $bTemplateModel->add($this->param); | 201 | $bTemplateModel->add($this->param); |
| 201 | }else{ | 202 | }else{ |
| 202 | - $bTemplateModel->edit(['html'=>$this->param['html']],['source'=>$this->param['source'],'source_id'=>$this->param['source_id']]); | 203 | + $bTemplateModel->edit($this->param,['source'=>$this->param['source'],'source_id'=>$this->param['source_id']]); |
| 203 | } | 204 | } |
| 204 | }catch (\Exception $e){ | 205 | }catch (\Exception $e){ |
| 205 | $this->fail('系统错误请联系管理员'); | 206 | $this->fail('系统错误请联系管理员'); |
-
请 注册 或 登录 后发表评论