|
|
|
@ -266,8 +266,8 @@ class StatController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
$players = $usermodel->getUserList($map, "GROUP_CONCAT(DISTINCT id) as user_ids,
|
|
|
|
|
FROM_UNIXTIME(register_time+{$continueDay}*86400, '%Y-%m-%d') as register_date", "register_date");
|
|
|
|
|
$players = array_column($players, 'user_ids', 'register_date');
|
|
|
|
|
|
|
|
|
|
$players = array_column($players, 'user_ids', 'register_date');
|
|
|
|
|
//获取这段时间内有登录(未流失)的玩家
|
|
|
|
|
$map1['r.login_time'] = array('exp', 'BETWEEN UNIX_TIMESTAMP(
|
|
|
|
|
FROM_UNIXTIME(
|
|
|
|
@ -286,7 +286,7 @@ AND UNIX_TIMESTAMP(
|
|
|
|
|
$map1['u.promote_id']=$para['promote_id'];
|
|
|
|
|
}
|
|
|
|
|
$map1['u.register_time'] = array('between',array($start, $end));
|
|
|
|
|
$keepPlayers = $usermodel->getKeepPlayers($map1, $continueDay);// 3或7天内有登录的玩家
|
|
|
|
|
$keepPlayers = $usermodel->getKeepPlayers($map1, $continueDay, count($days) > 5);// 3或7天内有登录的玩家
|
|
|
|
|
$keepPlayers = array_column($keepPlayers, 'user_ids', 'register_date');
|
|
|
|
|
|
|
|
|
|
$loss_count = array();//流失玩家数量
|
|
|
|
|