From 936424a4826f9e6a133779047d5094173fea43f0 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Mon, 18 Nov 2019 18:01:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=B9=B3=E5=8F=B0->=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=AE=A1=E7=90=86->=E6=AF=8F=E6=97=A5=E6=A6=82?= =?UTF-8?q?=E5=86=B5|=E6=95=B0=E6=8D=AE=E6=B1=87=E6=80=BB--sql=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/QueryController.class.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index 8a70ddc65..04b1f7acb 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();