|
|
|
@ -50,6 +50,14 @@ class QueryController extends BaseController
|
|
|
|
|
$begTime = strtotime($initBegTime);
|
|
|
|
|
$endTime = strtotime($initEndTime);
|
|
|
|
|
$endTime += 3600 * 24;
|
|
|
|
|
|
|
|
|
|
$payedBegTime = I("payed_begtime", '');
|
|
|
|
|
if ($payedBegTime) $payedBegTime = strtotime($payedBegTime);
|
|
|
|
|
$payedEndTime = I("payed_endtime", '');
|
|
|
|
|
if ($payedEndTime) {
|
|
|
|
|
$payedEndTime = strtotime($payedEndTime) + 3600 * 24;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$levelPromote = $this->getLevelPromote();
|
|
|
|
|
$queryPromote = $this->getQueryPromote($levelPromote);
|
|
|
|
|
$loginPromote = $this->getLoginPromote();
|
|
|
|
@ -102,6 +110,9 @@ class QueryController extends BaseController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$map['tab_spend.spend_time'] = ['between', [$begTime, $endTime - 1]];
|
|
|
|
|
if ($payedBegTime && $payedEndTime) {
|
|
|
|
|
$map['tab_spend.payed_time'] = ['between', [$payedBegTime, $payedEndTime - 1]];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$data = [];
|
|
|
|
|
$count = 0;
|
|
|
|
@ -177,6 +188,7 @@ class QueryController extends BaseController
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
$list['user_account'] = substr($list['user_account'], 0, 2) . '******' . substr($list['user_account'], 8);
|
|
|
|
|
$list['spend_time'] = date('Y-m-d H:i:s', $list['spend_time']);
|
|
|
|
|
$list['pay_time'] = ($list['pay_status'] == 1) ? date('Y-m-d H:i:s', $list['pay_time']) : '--';
|
|
|
|
|
$list['pay_status'] = isset(QueryController::$payStatus[$list['pay_status']]) ? QueryController::$payStatus[$list['pay_status']] : '未知状态';
|
|
|
|
|
$list['sdk_version'] = getSDKTypeName($list['sdk_version']);
|
|
|
|
@ -226,6 +238,8 @@ class QueryController extends BaseController
|
|
|
|
|
$this->assign('income', $income);
|
|
|
|
|
$this->assign('initBegTime', $initBegTime);
|
|
|
|
|
$this->assign('initEndTime', $initEndTime);
|
|
|
|
|
$this->assign('payedBegTime', I("payed_begtime", ''));
|
|
|
|
|
$this->assign('payedEndTime', I("payed_endtime", ''));
|
|
|
|
|
$this->assign('setdate', date("Y-m-d"));
|
|
|
|
|
$this->assign('serverData', $serverData['data']);
|
|
|
|
|
$this->assign('ownId', $ownId);
|
|
|
|
|