作者 邓超

e

@@ -176,7 +176,7 @@ class MailListV2Es2 extends Base { @@ -176,7 +176,7 @@ class MailListV2Es2 extends Base {
176 176
177 177
178 if(str_contains($folder, '收件箱') &&empty($where['is_hots']) &&empty($where['is_auto']) && empty($where['flagged'])){ 178 if(str_contains($folder, '收件箱') &&empty($where['is_hots']) &&empty($where['is_auto']) && empty($where['flagged'])){
179 - $from_not_in_like = app()->request('from_not_in_like'); 179 + $from_not_in_like = app()->requestArr('from_not_in_like');
180 if ($from_not_in_like) { 180 if ($from_not_in_like) {
181 $from_not_in_like = is_array($from_not_in_like) ? $from_not_in_like : [$from_not_in_like]; 181 $from_not_in_like = is_array($from_not_in_like) ? $from_not_in_like : [$from_not_in_like];
182 $notinquery = []; 182 $notinquery = [];
@@ -422,7 +422,7 @@ class MailListV2Es2 extends Base { @@ -422,7 +422,7 @@ class MailListV2Es2 extends Base {
422 $body['query']['bool']['must'][] = ['term'=>['is_auto'=>0]]; 422 $body['query']['bool']['must'][] = ['term'=>['is_auto'=>0]];
423 423
424 424
425 - $from_not_in_like = app()->request('from_not_in_like'); 425 + $from_not_in_like = app()->requestArr('from_not_in_like');
426 if ($from_not_in_like) { 426 if ($from_not_in_like) {
427 $from_not_in_like = is_array($from_not_in_like) ? $from_not_in_like : [$from_not_in_like]; 427 $from_not_in_like = is_array($from_not_in_like) ? $from_not_in_like : [$from_not_in_like];
428 $notinquery = []; 428 $notinquery = [];
@@ -235,7 +235,12 @@ class App { @@ -235,7 +235,12 @@ class App {
235 public function requestArr($name='*',array $default = [], $filter = null){ 235 public function requestArr($name='*',array $default = [], $filter = null){
236 $value = $this->request($name,$default, $filter); 236 $value = $this->request($name,$default, $filter);
237 if(!is_array($value)){ 237 if(!is_array($value)){
238 - $value = explode(',',(string) $value); 238 + $j = @json_decode($value,true);
  239 + if(is_array($j)){
  240 + $value = $j;
  241 + }else{
  242 + $value = explode(',',(string) $value);
  243 + }
239 } 244 }
240 foreach ($value as $k=>$v){ 245 foreach ($value as $k=>$v){
241 if($v===''){ 246 if($v===''){