作者 邓超

x

@@ -121,6 +121,16 @@ class Home extends Base { @@ -121,6 +121,16 @@ 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
  125 + if(app()->requestHas('from')){
  126 + $where['from'] = app()->request('from');
  127 + if(!$where['from']){
  128 + // 不让查询数据
  129 + $where['id'] = 0;
  130 + }
  131 + }
  132 +
  133 +
124 // 回复 134 // 回复
125 if (paramHas('answered')){ 135 if (paramHas('answered')){
126 $where['answered'] = app()->request('answered',0,'bool_Val')?1:0; 136 $where['answered'] = app()->request('answered',0,'bool_Val')?1:0;