定时任务:修复自动开服开关

This commit is contained in:
luying
2022-05-11 15:16:11 +08:00
parent 0bc35aba54
commit 751c796a6b
3 changed files with 20 additions and 5 deletions

View File

@@ -84,6 +84,7 @@ export class UpdateRegionParams {
openMail?: GMMail;
circleMail?: GMMail;
stopRegisterTime: number = 0;
isOpen: boolean = false;
hasOpenMail: boolean = false;
hasCircleMail: boolean = false;
@@ -95,9 +96,14 @@ export class UpdateRegionParams {
}
checkParams() {
if(!this.id || !this.name || !this.prefix || !this.maxPlayerCnt || !isArray(this.timers) || this.timers.length <= 0 || !isArray(this.activityGroupId) || this.activityGroupId.length <= 0 || !isString(this.versionCode) || !isString(this.curVersion) || !isString(this.updateResUrl)) {
if(!this.id || !this.name || !this.prefix || !isString(this.versionCode) || !isString(this.curVersion) || !isString(this.updateResUrl)) {
console.log('1111', !this.id, !this.name, !this.prefix, !isString(this.versionCode),!isString(this.curVersion), !isString(this.updateResUrl))
return false
}
if(this.isOpen && (!this.maxPlayerCnt || !isArray(this.timers) || this.timers.length <= 0 || !isArray(this.activityGroupId) || this.activityGroupId.length <= 0 )) {
console.log('2222')
return false
}
return true;
}