🐞 fix(gvg): 个人积分排行榜

This commit is contained in:
luying
2023-07-05 20:00:55 +08:00
parent f55f9b2e34
commit a47908235d
2 changed files with 7 additions and 2 deletions

View File

@@ -450,9 +450,13 @@ export async function redisAddBattleScore(gvgTeam: GVGTeamType, incScore: number
if(isRobot) return;
let nextWeek = <number>getTimeFun().getAfterDayWithHour(7);
let r = new Rank(REDIS_KEY.GVG_BATTLE_RANK, { configId, groupKey, cityId });
let r = new Rank(REDIS_KEY.GVG_BATTLE_RANK, { configId, groupKey });
await r.setExpire(nextWeek);
await r.setRankWithRoleInfo(roleId, incScore, Date.now(), null, true);
let r2 = new Rank(REDIS_KEY.GVG_BATTLE_USR_SETTLE_RANK_BY_CITY, { configId, groupKey, cityId });
await r2.setExpire(nextWeek);
await r2.setRankWithRoleInfo(roleId, incScore, Date.now(), null, true);
}
export async function redisAddSettleScore(gvgTeam: GVGTeamType, incScore: number) {