diff --git a/Application/Home/Controller/GameController.class.php b/Application/Home/Controller/GameController.class.php index 3279b45bd..7ddc887af 100644 --- a/Application/Home/Controller/GameController.class.php +++ b/Application/Home/Controller/GameController.class.php @@ -58,9 +58,14 @@ class GameController extends BaseController $gameIds[] = $baseGame['ios_game_id']; } } + + $conditions = []; if ($isMine) { $applyGameIds = M('apply', 'tab_')->where(['offline_status' => 0, 'promote_id' => $promoteId])->getField('game_id', true); $gameIds = array_intersect($applyGameIds, $gameIds); + if (count($gameIds) == 0) { + $gameIds = [0]; + } } $columns = ['id', 'icon', 'game_name', 'features', 'sdk_version', 'game_size', 'game_type_name'];