优化区服选择无效问题

master
chenzhi 5 years ago
parent c0a0f44287
commit 8b968fc9fb

@ -7,6 +7,7 @@ class RechargeSumController extends ThinkController
public function summation($p = 1) public function summation($p = 1)
{ {
$startDateTime = empty($_REQUEST['timeStart']) ? date('Y-m-d', strtotime('-6 day', time())) : $_REQUEST['timeStart']; $startDateTime = empty($_REQUEST['timeStart']) ? date('Y-m-d', strtotime('-6 day', time())) : $_REQUEST['timeStart'];
$endDateTime = empty($_REQUEST['timeEnd']) ? date('Y-m-d') : $_REQUEST['timeEnd']; $endDateTime = empty($_REQUEST['timeEnd']) ? date('Y-m-d') : $_REQUEST['timeEnd'];
$startTime = strtotime($startDateTime); $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')]; $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']; $rmap['tab_user_play.server_id'] = $map['server_id'] = $_REQUEST['server_id'];
} }
if ($_REQUEST['bindcoin'] == 1) { if ($_REQUEST['bindcoin'] == 1) {
$map['pay_way'] = array('egt', 0); $map['pay_way'] = array('egt', 0);
} }

Loading…
Cancel
Save