后台-【充值】-【平台币充值】导出充值时间出错

master
liuweiwen 5 years ago
parent dd22e6d0e9
commit e962786e07

@ -49,10 +49,9 @@ class ExportController extends Controller
//导出Excel
function expUser($id)
{
$xlsName = $_REQUEST['xlsname'];
$xlsName = $_REQUEST['xlsname'];
switch ($id) {
case 1:
$xlsCell = array(
array('user_account', "玩家账号"),
array('game_name', "游戏名称"),
@ -861,10 +860,11 @@ class ExportController extends Controller
$map['spend_ip'] = array('like', '%' . trim($_REQUEST['spend_ip']) . '%');
unset($_REQUEST['spend_ip']);
}
if (isset($_REQUEST['time-start']) && isset($_REQUEST['time-end'])) {
$map['pay_time'] = array('BETWEEN', array(strtotime($_REQUEST['time-start']), strtotime($_REQUEST['time-end']) + 24 * 60 * 60 - 1));
unset($_REQUEST['time-start']);
unset($_REQUEST['time-end']);
if (isset($_REQUEST['timestart']) && isset($_REQUEST['timeend'])) {
$map['pay_time'] = array('BETWEEN', array(strtotime($_REQUEST['timestart']), strtotime($_REQUEST['timeend']) + 24 * 60 * 60 - 1));
unset($_REQUEST['timestart']);
unset($_REQUEST['timeend']);
}
if (isset($_REQUEST['start']) && isset($_REQUEST['end'])) {
$map['pay_time'] = array('BETWEEN', array(strtotime($_REQUEST['start']), strtotime($_REQUEST['end']) + 24 * 60 * 60 - 1));

Loading…
Cancel
Save