🐞 fix(gvg): 个人积分排行榜
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user