正在显示
1 个修改的文件
包含
11 行增加
和
3 行删除
| @@ -121,13 +121,21 @@ class Home extends Base { | @@ -121,13 +121,21 @@ class Home extends Base { | ||
| 121 | $where['_'][] = '(`from` = "'.$address.'" or `to_name` like "%'.$address.'%")'; | 121 | $where['_'][] = '(`from` = "'.$address.'" or `to_name` like "%'.$address.'%")'; |
| 122 | } | 122 | } |
| 123 | } | 123 | } |
| 124 | - // from | 124 | + // from 搜索收件人 |
| 125 | if(app()->requestHas('from')){ | 125 | if(app()->requestHas('from')){ |
| 126 | - $where['from'] = app()->request('from'); | ||
| 127 | - if(!$where['from']){ | 126 | + // 如果是发件箱 |
| 127 | + if($folder == '发件箱'){ | ||
| 128 | + $where['to'] = app()->request('from'); | ||
| 129 | + }else{ | ||
| 130 | + $where['from'] = app()->request('from'); | ||
| 131 | + } | ||
| 132 | + | ||
| 133 | + if(!$where['from'] || !$where['to']){ | ||
| 128 | // 不让查询数据 | 134 | // 不让查询数据 |
| 129 | $where['id'] = 0; | 135 | $where['id'] = 0; |
| 130 | } | 136 | } |
| 137 | + | ||
| 138 | + | ||
| 131 | } | 139 | } |
| 132 | 140 | ||
| 133 | 141 |
-
请 注册 或 登录 后发表评论