修改bug

master
ELF 5 years ago
parent e610500db6
commit 8ce7442062

@ -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();
}

Loading…
Cancel
Save