|
|
@ -1247,9 +1247,10 @@ class PromoteService {
|
|
|
|
$map = [];
|
|
|
|
$map = [];
|
|
|
|
$map['_string'] = ' promote_id in(' . $this->subInSql($topPromote) . ')';
|
|
|
|
$map['_string'] = ' promote_id in(' . $this->subInSql($topPromote) . ')';
|
|
|
|
$map = $spendRepository->withIsCheck($map);
|
|
|
|
$map = $spendRepository->withIsCheck($map);
|
|
|
|
$historyGameIds = M('spend', 'tab_')->field(['distinct game_id'])->where($map)->getField('game_id', true);
|
|
|
|
$historyGames = M('spend', 'tab_')->field(['distinct game_id'])->where($map)->select();
|
|
|
|
if (!$historyGameIds) {
|
|
|
|
$historyGameIds = [];
|
|
|
|
$historyGameIds = [];
|
|
|
|
if ($historyGames) {
|
|
|
|
|
|
|
|
$historyGameIds = array_column($historyGames, 'game_id');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$nowGameIds = $topPromote['game_ids'] == '' ? [] : explode(',', $topPromote['game_ids']);
|
|
|
|
$nowGameIds = $topPromote['game_ids'] == '' ? [] : explode(',', $topPromote['game_ids']);
|
|
|
|
return array_unique(array_merge($historyGameIds, $nowGameIds));
|
|
|
|
return array_unique(array_merge($historyGameIds, $nowGameIds));
|
|
|
|