|
|
|
@ -14,13 +14,16 @@ class SpendController extends ThinkController
|
|
|
|
|
|
|
|
|
|
public function lists()
|
|
|
|
|
{
|
|
|
|
|
$startDate = empty($_REQUEST['time-start']) ? date('Y-m-d', strtotime('-6 day', time())) : $_REQUEST['time-start'];
|
|
|
|
|
$endDate = empty($_REQUEST['time-end']) ? date('Y-m-d') : $_REQUEST['time-end'];
|
|
|
|
|
$startDate = empty($_REQUEST['timestart']) ? date('Y-m-d', strtotime('-6 day', time())) : $_REQUEST['timestart'];
|
|
|
|
|
$endDate = empty($_REQUEST['timeend']) ? date('Y-m-d') : $_REQUEST['timeend'];
|
|
|
|
|
|
|
|
|
|
$startTime = strtotime($startDate);
|
|
|
|
|
$endTime = strtotime($endDate) + 86399;
|
|
|
|
|
$map['pay_time'] = array('BETWEEN', array($startTime, $endTime));
|
|
|
|
|
unset($_REQUEST['time-start']);
|
|
|
|
|
unset($_REQUEST['time-end']);
|
|
|
|
|
|
|
|
|
|
unset($_REQUEST['timestart']);
|
|
|
|
|
unset($_REQUEST['timeend']);
|
|
|
|
|
|
|
|
|
|
if (isset($_REQUEST['user_account'])) {
|
|
|
|
|
$map['user_account'] = array('like', trim($_REQUEST['user_account']));
|
|
|
|
|
unset($_REQUEST['user_account']);
|
|
|
|
@ -37,6 +40,9 @@ class SpendController extends ThinkController
|
|
|
|
|
unset($_REQUEST['game_name']);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isset($_REQUEST['game_type']) && $_REQUEST['game_type']) {
|
|
|
|
|
$map['sdk_version'] = $_REQUEST['game_type'];
|
|
|
|
|
}
|
|
|
|
|
if (isset($_REQUEST['server_name'])) {
|
|
|
|
|
$map['server_name'] = $_REQUEST['server_name'];
|
|
|
|
|
unset($_REQUEST['server_name']);
|
|
|
|
|