|
|
|
@ -711,8 +711,8 @@ class QueryController extends BaseController
|
|
|
|
|
'registerCount' => $registerCountList[$day],
|
|
|
|
|
'payRate' => $loginCountList[$day] == 0 ? '--' : round($payUserCountList[$day]/$loginCountList[$day]*100, 2) . '%',
|
|
|
|
|
'ratentionOneDay' => '--',
|
|
|
|
|
'arpu' => $loginCountList[$day] == 0 ? '0.00' : number_format(round($payAmount[$day]/$loginCountList[$day], 2), 2),
|
|
|
|
|
'arppu' => $payUserCount[$day] == 0 ? '0.00' : number_format(round($payAmount[$day]/$payUserCount[$day], 2), 2),
|
|
|
|
|
'arpu' => $loginCountList[$day] == 0 ? '0.00' : number_format(round($payAmountList[$day]/$loginCountList[$day], 2), 2),
|
|
|
|
|
'arppu' => $payUserCountList[$day] == 0 ? '0.00' : number_format(round($payAmountList[$day]/$payUserCountList[$day], 2), 2),
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
@ -1852,7 +1852,7 @@ class QueryController extends BaseController
|
|
|
|
|
$promotes = $this->getNormalPromotes($promote);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$map = $spendMap = ['promote_id' => ['in' => $ids]];
|
|
|
|
|
$map = $spendMap = ['promote_id' => ['in', $ids]];
|
|
|
|
|
if ($gameId != 0) {
|
|
|
|
|
$map['game_id'] = $gameId;
|
|
|
|
|
}
|
|
|
|
@ -1966,7 +1966,7 @@ class QueryController extends BaseController
|
|
|
|
|
public function getGameServers()
|
|
|
|
|
{
|
|
|
|
|
$gameId = I('game_id', 0);
|
|
|
|
|
$servers = M('server', 'tab_')->field(['id', 'server_name'])->where(['game_id' => $gameId])->select();
|
|
|
|
|
$servers = M('server', 'tab_')->field(['id', 'server_id', 'server_name'])->where(['game_id' => $gameId])->select();
|
|
|
|
|
$this->ajaxReturn([
|
|
|
|
|
'status' => 1,
|
|
|
|
|
'msg' => '成功',
|
|
|
|
|