|
|
|
@ -1052,6 +1052,14 @@ class QueryController extends BaseController
|
|
|
|
|
$summaryData['spend_all_amount'][] = $list['spend_all_amount'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$summaryData['date'] = array_reverse($summaryData['date']);
|
|
|
|
|
$summaryData['role_num'] = array_reverse($summaryData['role_num']);
|
|
|
|
|
$summaryData['user_num'] = array_reverse($summaryData['user_num']);
|
|
|
|
|
$summaryData['new_user_num'] = array_reverse($summaryData['new_user_num']);
|
|
|
|
|
$summaryData['new_device_num'] = array_reverse($summaryData['new_device_num']);
|
|
|
|
|
$summaryData['spend_user_num'] = array_reverse($summaryData['spend_user_num']);
|
|
|
|
|
$summaryData['spend_all_amount'] = array_reverse($summaryData['spend_all_amount']);
|
|
|
|
|
|
|
|
|
|
$serverData = $this->getServer(I('relation_game_id'), I('sdk_version'));
|
|
|
|
|
|
|
|
|
|
$thisParentPromoteId = getParentPromoteId(PID);//本账号上级渠道ID
|
|
|
|
@ -1771,13 +1779,13 @@ class QueryController extends BaseController
|
|
|
|
|
'server_name' => $role['server_name'],
|
|
|
|
|
'recharge_cost' => isset($allRecords[$role['role_id']]) ? round(floatval($allRecords[$role['role_id']]['cost']), 2) : 0,
|
|
|
|
|
'recharge_count' => isset($allRecords[$role['role_id']]) ? $allRecords[$role['role_id']]['count'] : 0,
|
|
|
|
|
'recharge_cost_today' =>isset($todayRecords[$role['role_id']]) ? round(floatval($todayRecords[$role['role_id']]['cost']), 2) : 0,
|
|
|
|
|
'recharge_cost_today' => isset($todayRecords[$role['role_id']]) ? round(floatval($todayRecords[$role['role_id']]['cost']), 2) : 0,
|
|
|
|
|
'play_time' => $role['play_time'],
|
|
|
|
|
'play_ip' => $role['play_ip'],
|
|
|
|
|
'promote_id' => $role['promote_id'],
|
|
|
|
|
'promote_account' => $role['promote_account'],
|
|
|
|
|
'sdk_version' => $role['sdk_version'],
|
|
|
|
|
'unlogin_day' => intval((strtotime(date('Y-m-d 00:00:00')) - strtotime(date('Y-m-d 00:00:00', $role['play_time']))) / (24*3600) )
|
|
|
|
|
'unlogin_day' => intval((strtotime(date('Y-m-d 00:00:00')) - strtotime(date('Y-m-d 00:00:00', $role['play_time']))) / (24 * 3600))
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|