作者 邓超

x

@@ -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 + // 如果是发件箱
  127 + if($folder == '发件箱'){
  128 + $where['to'] = app()->request('from');
  129 + }else{
126 $where['from'] = app()->request('from'); 130 $where['from'] = app()->request('from');
127 - if(!$where['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