From 67af68fc43ea4766fb4aa4210c5e35bb2fcfdc39 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Tue, 19 Nov 2019 16:31:30 +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=95=B0=E6=8D=AE=E6=B1=87?= =?UTF-8?q?=E6=80=BB--=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/QueryController.class.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index f6d51723d..6136fe8dd 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -1310,20 +1310,7 @@ class QueryController extends BaseController $allGameIs = array_column($allGameIs, 'game_id'); $records = []; - $allData['role_num'] = 0; - $allData['user_num'] = 0; - $allData['new_user_num'] = 0; - $allData['new_device_num'] = 0; - $allData['new_ip_num'] = 0; - $allData['login_user_num'] = 0; - $allData['spend_user_num'] = 0; - $allData['spend_num'] = 0; - $allData['spend_all_amount'] = 0; - $allData['spend_cash'] = 0; - $allData['spend_generic'] = 0; - $allData['spend_binding'] = 0; - $allData['spend_discount'] = 0; - $allData['spend_voucher'] = 0; + $allData = []; if (!empty($data)) { if (intval($endTime - $begTime) / (24 * 3600) <= 31) { $gameIds = array_column($data, 'game_id'); @@ -1386,6 +1373,8 @@ class QueryController extends BaseController $allData['spend_generic'] = $spendRepository->getPayAmountByGameAndType($params);//通用币充值 $params['pay_way'] = -1; $allData['spend_binding'] = $spendRepository->getPayAmountByGameAndType($params);//绑定币充值 + $allData['spend_discount'] = 0; + $allData['spend_voucher'] = 0; } }