🐞 fix(后台): 保存开服策略不覆盖timers
This commit is contained in:
@@ -86,7 +86,7 @@ export class UpdateRegionParams {
|
|||||||
|
|
||||||
maxPlayerCnt: number = 0;
|
maxPlayerCnt: number = 0;
|
||||||
type: number = 0;
|
type: number = 0;
|
||||||
timers: string[] = [];
|
timers: string[];
|
||||||
activityGroupId: number[] = [];
|
activityGroupId: number[] = [];
|
||||||
openMail?: GMMail;
|
openMail?: GMMail;
|
||||||
// circleMail?: GMMail;
|
// circleMail?: GMMail;
|
||||||
@@ -107,7 +107,7 @@ export class UpdateRegionParams {
|
|||||||
// console.log('1111', !this.id, !this.name, !this.prefix, !isString(this.minVersion),!isString(this.curVersion), !isString(this.updateResUrl))
|
// console.log('1111', !this.id, !this.name, !this.prefix, !isString(this.minVersion),!isString(this.curVersion), !isString(this.updateResUrl))
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if(this.isOpen && (!this.maxPlayerCnt || !isArray(this.timers) || this.timers.length <= 0 || !isArray(this.activityGroupId) || this.activityGroupId.length <= 0 )) {
|
if(this.isOpen && (!this.maxPlayerCnt || !isArray(this.activityGroupId) || this.activityGroupId.length <= 0 )) {
|
||||||
// console.log('2222')
|
// console.log('2222')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user