过滤掉newsale搜索传参中值为0或者null的参数
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -95,7 +95,7 @@ class NewsaleData | @@ -95,7 +95,7 @@ class NewsaleData | ||
95 | ); | 95 | ); |
96 | // 拉取筛选参数 | 96 | // 拉取筛选参数 |
97 | $queriedParams = array_filter($selectItems, function($v) { | 97 | $queriedParams = array_filter($selectItems, function($v) { |
98 | - return $v !== null; | 98 | + return !empty($v); |
99 | }); | 99 | }); |
100 | 100 | ||
101 | $param = Yohobuy::param(); | 101 | $param = Yohobuy::param(); |
-
Please register or login to post a comment