|
@@ -111,24 +111,21 @@ class AdPositionService
|
|
|
|
|
|
// 判断付费情况
|
|
|
$paidFilter = true;
|
|
|
- if (isset($filterContent['isPaid'])) {
|
|
|
- // 默认值
|
|
|
- $paidFilter = false;
|
|
|
-
|
|
|
+ if (getProp($filterContent, 'isPaid') !== '') {
|
|
|
// 获取用户付费情况
|
|
|
$order = OrderService::getUserLastestOrder($uid);
|
|
|
|
|
|
// 有付费
|
|
|
- if ($order && $filterContent['isPaid']) {
|
|
|
+ if ($order && getProp($filterContent, 'isPaid') === 1) {
|
|
|
$paidFilter = true;
|
|
|
}
|
|
|
|
|
|
// 未付费
|
|
|
- if (!$order && !$filterContent['isPaid']) {
|
|
|
+ if (!$order && getProp($filterContent, 'isPaid') === 0) {
|
|
|
$paidFilter = true;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 两者全部满足条件才可展示
|
|
|
return $registerFilter && $paidFilter;
|
|
|
}
|