diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index e81dd059c..198742df2 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -1316,10 +1316,7 @@ class QueryController extends BaseController $allData['spend_voucher'] = 0; if (!empty($data)) { if (intval($endTime - $begTime) / (24 * 3600) <= 31) { - $gameIds = []; - foreach ($data as $list) { - $gameIds[] = $list['game_id']; - } + $gameIds = array_column($data, 'game_id'); $params['game_ids'] = $gameIds; $userRepository = new UserRepository();