作者 邓超

e

... ... @@ -176,7 +176,7 @@ class MailListV2Es2 extends Base {
if(str_contains($folder, '收件箱') &&empty($where['is_hots']) &&empty($where['is_auto']) && empty($where['flagged'])){
$from_not_in_like = app()->request('from_not_in_like');
$from_not_in_like = app()->requestArr('from_not_in_like');
if ($from_not_in_like) {
$from_not_in_like = is_array($from_not_in_like) ? $from_not_in_like : [$from_not_in_like];
$notinquery = [];
... ... @@ -422,7 +422,7 @@ class MailListV2Es2 extends Base {
$body['query']['bool']['must'][] = ['term'=>['is_auto'=>0]];
$from_not_in_like = app()->request('from_not_in_like');
$from_not_in_like = app()->requestArr('from_not_in_like');
if ($from_not_in_like) {
$from_not_in_like = is_array($from_not_in_like) ? $from_not_in_like : [$from_not_in_like];
$notinquery = [];
... ...
... ... @@ -235,7 +235,12 @@ class App {
public function requestArr($name='*',array $default = [], $filter = null){
$value = $this->request($name,$default, $filter);
if(!is_array($value)){
$value = explode(',',(string) $value);
$j = @json_decode($value,true);
if(is_array($j)){
$value = $j;
}else{
$value = explode(',',(string) $value);
}
}
foreach ($value as $k=>$v){
if($v===''){
... ...