feat(gvg): 定时器

This commit is contained in:
luying
2023-02-16 16:54:53 +08:00
parent 7543baa8cb
commit 605ee869a9
12 changed files with 210 additions and 56 deletions

View File

@@ -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;
}