正在显示
1 个修改的文件
包含
8 行增加
和
5 行删除
| @@ -126,13 +126,16 @@ class Home extends Base { | @@ -126,13 +126,16 @@ 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']){ | ||
| 134 | - // 不让查询数据 | ||
| 135 | - $where['id'] = 0; | 135 | + if(!$where['from']){ |
| 136 | + // 不让查询数据 | ||
| 137 | + $where['id'] = 0; | ||
| 138 | + } | ||
| 136 | } | 139 | } |
| 137 | 140 | ||
| 138 | 141 |
-
请 注册 或 登录 后发表评论