埋点:修复报告玩家在线时间

This commit is contained in:
luying
2021-12-14 20:14:04 +08:00
parent 25fc5d1e26
commit 84c8452654
@@ -207,7 +207,7 @@ export class EntryHandler {
savePlayTime(roleInfo.userCode); savePlayTime(roleInfo.userCode);
} }
}); });
reportTAUserSet(TA_USERSET_TYPE.ADD, roleId, nowSeconds() - loginTime); reportTAUserSet(TA_USERSET_TYPE.ADD, roleId, { total_play_time: nowSeconds() - loginTime });
rmRoleFromQueue(roleId, sid, COM_BTL_QUALITY, null); // 删除redis中寻宝的匹配记录 rmRoleFromQueue(roleId, sid, COM_BTL_QUALITY, null); // 删除redis中寻宝的匹配记录
let channelService = this.app.get('channelService'); let channelService = this.app.get('channelService');
let channel = channelService.getChannel(roleId, true); let channel = channelService.getChannel(roleId, true);