作者 邓超

x

@@ -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 }