修改大区支持最小资源版本号为字符串

This commit is contained in:
liangtongchuan
2022-05-10 18:31:29 +08:00
parent 39afdae615
commit eca5ec1733
4 changed files with 27 additions and 6 deletions

View File

@@ -74,7 +74,7 @@ export class UpdateRegionParams {
name: string = ''; // 大区名
prefix: string = ''; // 区名前缀
remark: string = '';
versionCode: number = 1;
versionCode: string = '';
curVersion: string = '';
updateResUrl: string = '';
@@ -95,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) || !isString(this.updateResUrl)) {
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)) {
return false
}
return true;
@@ -132,7 +132,7 @@ export class CreateRegionParam {
name: string = ''; // 大区名
prefix: string = ''; // 区名前缀
remark: string = '';
versionCode: number = 1;
versionCode: string = '';
env: string = ''; // 环境变量
gmLink: string; // 对应后台链接
gameHost: string; // 长链接
@@ -147,7 +147,7 @@ export class CreateRegionParam {
}
checkParams() {
if(!this.name || !this.prefix || !this.env || !this.gmLink || !this.gameHost || !this.gmPort || !this.webHost || !isNumber(this.gmPort) || !isNumber(this.versionCode) || !this.updateResUrl) {
if(!this.name || !this.prefix || !this.env || !this.gmLink || !this.gameHost || !this.gmPort || !this.webHost || !isNumber(this.gmPort) || !isString(this.versionCode) || !this.updateResUrl) {
return false
}
return true;