From b80466bb513c1304b297885f440dee35cc84ed9d Mon Sep 17 00:00:00 2001 From: luying Date: Tue, 10 May 2022 17:42:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=83=AD=E6=9B=B4=E6=96=B0=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/domain/backEndField/params.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shared/domain/backEndField/params.ts b/shared/domain/backEndField/params.ts index 65312257f..0deafd8d7 100644 --- a/shared/domain/backEndField/params.ts +++ b/shared/domain/backEndField/params.ts @@ -76,6 +76,7 @@ export class UpdateRegionParams { remark: string = ''; versionCode: number = 1; curVersion: string = ''; + updateResUrl: string = ''; maxPlayerCnt: number = 0; timers: SERVER_TIMER[] = []; @@ -94,7 +95,7 @@ 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 || !isNumber(this.versionCode) || !isString(this.curVersion)) { + if(!this.id || !this.name || !this.prefix || !this.maxPlayerCnt || !isArray(this.timers) || this.timers.length <= 0 || !isArray(this.activityGroupId) || this.activityGroupId.length <= 0 || !isNumber(this.versionCode) || !isString(this.curVersion) || !isString(this.updateResUrl)) { return false } return true; @@ -109,6 +110,7 @@ export class UpdateRegionParams { remark: this.remark, versionCode: this.versionCode, curVersion: this.curVersion, + updateResUrl: this.updateResUrl, stategy } } else { @@ -119,6 +121,7 @@ export class UpdateRegionParams { remark: this.remark||oldRegion.remark, versionCode: this.versionCode||oldRegion.versionCode, curVersion: this.curVersion||oldRegion.curVersion, + updateResUrl: this.updateResUrl||oldRegion.updateResUrl, stategy: { ...(oldRegion.stategy||{}), ...stategy } } }