|
|
@ -55,13 +55,14 @@ class GameController extends BaseController
|
|
|
|
$gameIds = $promoteService->getVisibleGameIds($promote);
|
|
|
|
$gameIds = $promoteService->getVisibleGameIds($promote);
|
|
|
|
if ($baseGameId > 0) {
|
|
|
|
if ($baseGameId > 0) {
|
|
|
|
$baseGame = M('base_game', 'tab_')->where(['id' => $baseGameId])->find();
|
|
|
|
$baseGame = M('base_game', 'tab_')->where(['id' => $baseGameId])->find();
|
|
|
|
$gameIds = [];
|
|
|
|
$searchGameIds = [];
|
|
|
|
if ($baseGame['android_game_id'] > 0) {
|
|
|
|
if ($baseGame['android_game_id'] > 0) {
|
|
|
|
$gameIds[] = $baseGame['android_game_id'];
|
|
|
|
$searchGameIds[] = $baseGame['android_game_id'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($baseGame['ios_game_id'] > 0) {
|
|
|
|
if ($baseGame['ios_game_id'] > 0) {
|
|
|
|
$gameIds[] = $baseGame['ios_game_id'];
|
|
|
|
$searchGameIds[] = $baseGame['ios_game_id'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$gameIds = array_intersect($searchGameIds, $gameIds);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$conditions = [];
|
|
|
|
$conditions = [];
|
|
|
|