✨ feat(gvg): 玩家驻扎排行榜
This commit is contained in:
@@ -301,6 +301,9 @@ export class KeyName {
|
||||
seasonNum?: number;
|
||||
activityId?: number;
|
||||
index?: number; // 军团活动第几期
|
||||
vestigeId?: number;
|
||||
groupId?: number;
|
||||
serverType?: number;
|
||||
|
||||
constructor(key: string, param: KeyNameParam) {
|
||||
this.key = key;
|
||||
@@ -311,6 +314,9 @@ export class KeyName {
|
||||
if(param.seasonNum) this.seasonNum = param.seasonNum;
|
||||
if(param.activityId) this.activityId = param.activityId;
|
||||
if(param.index) this.index = param.index;
|
||||
if(param.vestigeId) this.vestigeId = param.vestigeId;
|
||||
if(param.groupId) this.groupId = param.groupId;
|
||||
if(param.serverType) this.serverType = param.serverType;
|
||||
}
|
||||
|
||||
public getName() {
|
||||
@@ -343,6 +349,10 @@ export class KeyName {
|
||||
case REDIS_KEY.SUM_CE_SNAPSHOT:
|
||||
case REDIS_KEY.TOP_LINE_SNAPSHOT:
|
||||
return `${this.key}:${this.serverId}:${this.activityId}`;
|
||||
case REDIS_KEY.GVG_VESTIGE_MEMBER:
|
||||
return `${this.key}:${this.groupId}:${this.serverType}:${this.vestigeId}`;
|
||||
case REDIS_KEY.GVG_VESTIGE_MEMBER_ALL:
|
||||
return `${this.key}:${this.groupId}`;
|
||||
default:
|
||||
return this.key;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user