正在显示
1 个修改的文件
包含
8 行增加
和
1 行删除
@@ -132,11 +132,18 @@ class Home extends Base { | @@ -132,11 +132,18 @@ class Home extends Base { | ||
132 | if(app()->requestHas('from')){ | 132 | if(app()->requestHas('from')){ |
133 | // 如果是发件箱 | 133 | // 如果是发件箱 |
134 | if($folder == '发件箱'){ | 134 | if($folder == '发件箱'){ |
135 | - $where['to'] = app()->request('from'); | 135 | + $tos = app()->request('from'); |
136 | if(!$where['to']){ | 136 | if(!$where['to']){ |
137 | // 不让查询数据 | 137 | // 不让查询数据 |
138 | $where['id'] = 0; | 138 | $where['id'] = 0; |
139 | } | 139 | } |
140 | + if($tos){ | ||
141 | + $tos = array_map(function ($v){ | ||
142 | + return "find_in_set('".addcslashes($v,"'")."',`to`)"; | ||
143 | + },is_array($tos) ? $tos : [$tos]); | ||
144 | + | ||
145 | + $where['_'][] = '('.implode(' or ',$tos).')'; | ||
146 | + } | ||
140 | }else{ | 147 | }else{ |
141 | $where['from'] = app()->request('from'); | 148 | $where['from'] = app()->request('from'); |
142 | if(!$where['from']){ | 149 | if(!$where['from']){ |
-
请 注册 或 登录 后发表评论