正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -28,7 +28,7 @@ class WebSettingLogic extends BaseLogic | @@ -28,7 +28,7 @@ class WebSettingLogic extends BaseLogic | ||
| 28 | if(empty($info)){ | 28 | if(empty($info)){ |
| 29 | $info = $this->model->read(['project_id'=>$this->user['project_id']]); | 29 | $info = $this->model->read(['project_id'=>$this->user['project_id']]); |
| 30 | if($info === false){ | 30 | if($info === false){ |
| 31 | - $this->fail('当前数据不存在'); | 31 | + $info = []; |
| 32 | } | 32 | } |
| 33 | CommonHelper::set_user_cache($info,$this->model->getTable(),$this->user['project_id']); | 33 | CommonHelper::set_user_cache($info,$this->model->getTable(),$this->user['project_id']); |
| 34 | } | 34 | } |
-
请 注册 或 登录 后发表评论