|
@@ -44,9 +44,8 @@ class AdPositionService
|
|
$dispatches = collect($dispatches)->groupBy('ad_position_id')->all();
|
|
$dispatches = collect($dispatches)->groupBy('ad_position_id')->all();
|
|
foreach ($positions as $position) {
|
|
foreach ($positions as $position) {
|
|
// 相关变量获取
|
|
// 相关变量获取
|
|
- $positionId = getProp($position, 'id');
|
|
|
|
- $ident = getProp($position, 'ident');
|
|
|
|
- $filterContentJson = getProp($position, 'filter_condition');
|
|
|
|
|
|
+ $positionId = getProp($position, 'id');
|
|
|
|
+ $ident = getProp($position, 'ident');
|
|
|
|
|
|
// 获取优先级最高的任务
|
|
// 获取优先级最高的任务
|
|
$validDispatches = getProp($dispatches, $positionId, []);
|
|
$validDispatches = getProp($dispatches, $positionId, []);
|
|
@@ -56,7 +55,8 @@ class AdPositionService
|
|
}
|
|
}
|
|
|
|
|
|
// 过滤条件判断
|
|
// 过滤条件判断
|
|
- $matchFilter = $this->filterDispatch($uid, $filterContentJson);
|
|
|
|
|
|
+ $filterContentJson = getProp($validDispatch, 'filter_condition');
|
|
|
|
+ $matchFilter = $this->filterDispatch($uid, $filterContentJson);
|
|
if (!$matchFilter) {
|
|
if (!$matchFilter) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|