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; } }