pvp:修复赛季相关

This commit is contained in:
luying
2021-11-02 10:16:50 +08:00
parent 15ed1f71fe
commit 4c80a22ccf
15 changed files with 178 additions and 91 deletions
+3
View File
@@ -316,6 +316,7 @@ export class KeyName {
guildCode?: string;
cityId?: number;
hid?: number;
seasonNum?: number;
constructor(key: string, param: KeyNameParam) {
this.key = key;
@@ -323,6 +324,7 @@ export class KeyName {
if(param.guildCode) this.guildCode = param.guildCode;
if(param.cityId) this.cityId = param.cityId;
if(param.hid) this.hid = param.hid;
if(param.seasonNum) this.seasonNum = param.seasonNum;
}
public getName() {
@@ -331,6 +333,7 @@ export class KeyName {
if(this.guildCode) res += `:${this.guildCode}`;
if(this.cityId) res += `:${this.cityId}`;
if(this.hid) res += `:${this.hid}`;
if(this.seasonNum) res += `:${this.seasonNum}`;
return res;
}