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