🎈 perf(热更新): 添加白名单热更新地址
This commit is contained in:
@@ -75,7 +75,8 @@ export class UpdateRegionParams {
|
||||
name: string = ''; // 大区名
|
||||
prefix: string = ''; // 区名前缀
|
||||
remark: string = '';
|
||||
versionCode: string = '';
|
||||
minVersion: string = '';
|
||||
whitelistVersion: string = '';
|
||||
curVersion: string = '';
|
||||
updateResUrl: string = '';
|
||||
reviewVersion: string = '';
|
||||
@@ -100,8 +101,8 @@ export class UpdateRegionParams {
|
||||
}
|
||||
|
||||
checkParams() {
|
||||
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))
|
||||
if(!this.id || !this.name || !this.prefix || !isString(this.minVersion)|| !isString(this.whitelistVersion) || !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
|
||||
}
|
||||
if(this.isOpen && (!this.maxPlayerCnt || !isArray(this.timers) || this.timers.length <= 0 || !isArray(this.activityGroupId) || this.activityGroupId.length <= 0 )) {
|
||||
@@ -118,7 +119,8 @@ export class UpdateRegionParams {
|
||||
name: this.name,
|
||||
prefix: this.prefix,
|
||||
remark: this.remark,
|
||||
versionCode: this.versionCode,
|
||||
minVersion: this.minVersion,
|
||||
whitelistVersion: this.whitelistVersion,
|
||||
curVersion: this.curVersion,
|
||||
reviewVersion: this.reviewVersion,
|
||||
reviewEnv: this.reviewEnv,
|
||||
@@ -132,7 +134,8 @@ export class UpdateRegionParams {
|
||||
name: this.name||oldRegion.name,
|
||||
prefix: this.prefix||oldRegion.prefix,
|
||||
remark: this.remark||oldRegion.remark,
|
||||
versionCode: this.versionCode||oldRegion.versionCode,
|
||||
minVersion: this.minVersion||oldRegion.minVersion,
|
||||
whitelistVersion: this.whitelistVersion||oldRegion.whitelistVersion,
|
||||
curVersion: this.curVersion||oldRegion.curVersion,
|
||||
reviewVersion: this.reviewVersion||oldRegion.reviewVersion,
|
||||
reviewEnv: this.reviewEnv||oldRegion.reviewEnv,
|
||||
@@ -148,7 +151,8 @@ export class CreateRegionParam {
|
||||
name: string = ''; // 大区名
|
||||
prefix: string = ''; // 区名前缀
|
||||
remark: string = '';
|
||||
versionCode: string = '';
|
||||
minVersion: string = '';
|
||||
whitelistVersion: string = '';
|
||||
env: string = ''; // 环境变量
|
||||
gmLink: string; // 对应后台链接
|
||||
gameHost: string; // 长链接
|
||||
@@ -164,7 +168,7 @@ export class CreateRegionParam {
|
||||
}
|
||||
|
||||
checkParams() {
|
||||
if(!this.name || !this.prefix || !this.env || !this.gmLink || !this.gameHost || !this.gmPort || !this.webHost || !isNumber(this.gmPort) || !isString(this.versionCode) || !this.updateResUrl) {
|
||||
if(!this.name || !this.prefix || !this.env || !this.gmLink || !this.gameHost || !this.gmPort || !this.webHost || !isNumber(this.gmPort) || !isString(this.minVersion) || !isString(this.whitelistVersion) || !this.updateResUrl) {
|
||||
return false
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user