✨ feat(pvp): 巅峰演武战区化
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user