|
|
|
@ -684,6 +684,9 @@ class QueryController extends BaseController
|
|
|
|
|
$dayList = $this->getDayList($beginTime, $endTime);
|
|
|
|
|
$params['dayList'] = $dayList;
|
|
|
|
|
|
|
|
|
|
$timeout = 0;
|
|
|
|
|
$records = [];
|
|
|
|
|
if (intval($endTime - $beginTime)/(24*3600) <= 30) {
|
|
|
|
|
$userRepository = new UserRepository();
|
|
|
|
|
$spendRepository = new SpendRepository();
|
|
|
|
|
$payGameCountList = $spendRepository->getPayGameCountByDay($params);
|
|
|
|
@ -695,7 +698,6 @@ class QueryController extends BaseController
|
|
|
|
|
$loginCountList = $userRepository->getLoginCountByDay($params);
|
|
|
|
|
$registerCountList = $userRepository->getRegisterCountByDay($params);
|
|
|
|
|
|
|
|
|
|
$records = [];
|
|
|
|
|
foreach ($dayList as $day) {
|
|
|
|
|
$records[] = [
|
|
|
|
|
'day' => $day,
|
|
|
|
@ -713,6 +715,10 @@ class QueryController extends BaseController
|
|
|
|
|
'arppu' => $payUserCount[$day] == 0 ? '0.00' : number_format(round($payAmount[$day]/$payUserCount[$day], 2), 2),
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
$timeout = 1;
|
|
|
|
|
}
|
|
|
|
|
$this->assign('timeout', $timeout);
|
|
|
|
|
$this->assign('records', $records);
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|