From 2beec440db65cec8c9eef5b50a61911581fcfa7f Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Wed, 6 Nov 2019 20:19:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/QueryController.class.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index 56ce91d23..a6b118ab2 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -2084,11 +2084,8 @@ class QueryController extends BaseController $allRecords[$recharge['game_player_id']] = $recharge; } - $map['pay_time'] = ['between', [strtotime(date('Y-m-d 00:00:00')), strtotime(date('Y-m-d 23:59:59'))]]; - if (isset($map['_string'])) { - unset($map['_string']); - } - $todayRecharges = M('spend', 'tab_')->field('sum(cost) cost, game_player_id')->where($map)->group('game_player_id')->select(); + $spendMap['pay_time'] = ['between', [strtotime(date('Y-m-d 00:00:00')), strtotime(date('Y-m-d 23:59:59'))]]; + $todayRecharges = M('spend', 'tab_')->field('sum(cost) cost, game_player_id')->where($spendMap)->group('game_player_id')->select(); $todayRecords = []; foreach ($todayRecharges as $recharge) { $todayRecords[$recharge['game_player_id']] = $recharge;