✨ feat(pvp): 巅峰演武战区化

This commit is contained in:
luying
2023-03-18 16:59:39 +08:00
parent da86251116
commit e52c7b5241
25 changed files with 341 additions and 191 deletions
+3 -1
View File
@@ -356,6 +356,7 @@ export class SimpleRoleRankParam {
export class KeyName {
key: string;
serverId?: number;
groupId?: number; // 战区
guildCode?: string;
cityId?: number;
hid?: number;
@@ -371,6 +372,7 @@ export class KeyName {
constructor(key: string, param: KeyNameParam) {
this.key = key;
if(param.serverId) this.serverId = param.serverId;
if(param.groupId) this.groupId = param.groupId;
if(param.guildCode) this.guildCode = param.guildCode;
if(param.cityId) this.cityId = param.cityId;
if(param.hid) this.hid = param.hid;
@@ -401,7 +403,7 @@ export class KeyName {
case REDIS_KEY.HERO_RANK:
return `${this.key}:${this.serverId}:${this.hid}`;
case REDIS_KEY.PVP_RANK:
return `${this.key}:${this.seasonNum}`;
return `${this.key}:${this.seasonNum}:${this.groupId}`;
case REDIS_KEY.GATE_ACTIVITY:
case REDIS_KEY.RACE_ACTIVITY:
return `${this.key}:${this.serverId}:${this.index}`;