|
|
|
@ -1240,8 +1240,8 @@ class DownloadController extends BaseController {
|
|
|
|
|
$costBegin = I('cost_begin', ''); //充值总额范围
|
|
|
|
|
$costEnd = I('cost_end', '');
|
|
|
|
|
$nowTime = date('Y-m-d');
|
|
|
|
|
$initBegTime = date('Y-m-d', strtotime('-6 day', strtotime($nowTime)));
|
|
|
|
|
$initBegTime = empty(I('begtime')) ? $initBegTime : I('begtime');
|
|
|
|
|
$initBegTime = date('Y-m-d', strtotime('-7 day', strtotime($nowTime)));
|
|
|
|
|
$initBegTime = empty(I('begtime')) ? $initBegTime : I('begtime');
|
|
|
|
|
$initEndTime = $nowTime;
|
|
|
|
|
$initEndTime = empty(I('endtime')) ? $initEndTime : I('endtime');
|
|
|
|
|
$begTime = strtotime($initBegTime);
|
|
|
|
@ -2908,7 +2908,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
$map['_string'] = 'ui.role_id in (' . $subQuery . ')';
|
|
|
|
|
}
|
|
|
|
|
$secondDay = 24*3600 + 1;
|
|
|
|
|
$map['uc.create_time'] = ['between', [$map['begintime']-24*3600, $map['endtime'] - $secondDay]];
|
|
|
|
|
$map['uc.create_time'] = ['between', [$map['begintime'], $map['endtime'] - $secondDay]];
|
|
|
|
|
unset($map['begintime']);
|
|
|
|
|
unset($map['endtime']);
|
|
|
|
|
//$spendMap['_string'] = 'uc.game_id = tab_user_play_info.game_id and uc.server_id = tab_user_play_info.server_id and uc.role_id = tab_user_play_info.role_id';
|
|
|
|
|