✨ feat(gvg): 定时器
This commit is contained in:
@@ -366,6 +366,7 @@ export class KeyName {
|
||||
groupId?: number;
|
||||
serverType?: number;
|
||||
day?: string;
|
||||
configId?: number;
|
||||
|
||||
constructor(key: string, param: KeyNameParam) {
|
||||
this.key = key;
|
||||
@@ -380,6 +381,7 @@ export class KeyName {
|
||||
if(param.groupId) this.groupId = param.groupId;
|
||||
if(param.serverType) this.serverType = param.serverType;
|
||||
if(param.day) this.day = param.day;
|
||||
if(param.configId) this.configId = param.configId;
|
||||
}
|
||||
|
||||
public getName() {
|
||||
@@ -418,6 +420,10 @@ export class KeyName {
|
||||
return `${this.key}:${this.day}:${this.groupId}:${this.serverType}`;
|
||||
case REDIS_KEY.GVG_VESTIGE_LEAGUE:
|
||||
return `${this.key}:${this.day}:${this.groupId}:${this.serverType}`;
|
||||
case REDIS_KEY.GVG_BATTLE_RANK:
|
||||
return `${this.key}:${this.configId}:${this.groupId}:${this.serverType}:${this.cityId}`;
|
||||
case REDIS_KEY.GVG_BATTLE_LEAGUE_RANK:
|
||||
return `${this.key}:${this.configId}:${this.groupId}:${this.serverType}:${this.cityId}`;
|
||||
default:
|
||||
return this.key;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user