From 8b968fc9fbb16f16039525c55f982068afcc2dd7 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 23 Dec 2019 19:19:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8C=BA=E6=9C=8D=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/RechargeSumController.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/RechargeSumController.class.php b/Application/Admin/Controller/RechargeSumController.class.php index 66d201d42..f356c6e34 100644 --- a/Application/Admin/Controller/RechargeSumController.class.php +++ b/Application/Admin/Controller/RechargeSumController.class.php @@ -7,6 +7,7 @@ class RechargeSumController extends ThinkController public function summation($p = 1) { + $startDateTime = empty($_REQUEST['timeStart']) ? date('Y-m-d', strtotime('-6 day', time())) : $_REQUEST['timeStart']; $endDateTime = empty($_REQUEST['timeEnd']) ? date('Y-m-d') : $_REQUEST['timeEnd']; $startTime = strtotime($startDateTime); @@ -53,10 +54,12 @@ class RechargeSumController extends ThinkController $rmap['game_id'] = $map['game_id'] = ['in', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')]; } - if (!empty($_REQUEST['server_id'])) { + if (!empty($_REQUEST['server_id']) || !empty($_REQUEST['server_name'])) { + if(isset($_REQUEST['server_name'])){ + $_REQUEST['server_id'] = M("server","tab_")->field("id")->where("server_name = '{$_REQUEST['server_name']}'")->find()["id"]; + } $rmap['tab_user_play.server_id'] = $map['server_id'] = $_REQUEST['server_id']; } - if ($_REQUEST['bindcoin'] == 1) { $map['pay_way'] = array('egt', 0); }