正在显示
1 个修改的文件
包含
6 行增加
和
3 行删除
| @@ -126,14 +126,17 @@ class Home extends Base { | @@ -126,14 +126,17 @@ class Home extends Base { | ||
| 126 | // 如果是发件箱 | 126 | // 如果是发件箱 |
| 127 | if($folder == '发件箱'){ | 127 | if($folder == '发件箱'){ |
| 128 | $where['to'] = app()->request('from'); | 128 | $where['to'] = app()->request('from'); |
| 129 | + if(!$where['to']){ | ||
| 130 | + // 不让查询数据 | ||
| 131 | + $where['id'] = 0; | ||
| 132 | + } | ||
| 129 | }else{ | 133 | }else{ |
| 130 | $where['from'] = app()->request('from'); | 134 | $where['from'] = app()->request('from'); |
| 131 | - } | ||
| 132 | - | ||
| 133 | - if(!$where['from'] || !$where['to']){ | 135 | + if(!$where['from']){ |
| 134 | // 不让查询数据 | 136 | // 不让查询数据 |
| 135 | $where['id'] = 0; | 137 | $where['id'] = 0; |
| 136 | } | 138 | } |
| 139 | + } | ||
| 137 | 140 | ||
| 138 | 141 | ||
| 139 | } | 142 | } |
-
请 注册 或 登录 后发表评论