热更新版本号改为字符串格式
This commit is contained in:
@@ -75,7 +75,7 @@ export class UpdateRegionParams {
|
||||
prefix: string = ''; // 区名前缀
|
||||
remark: string = '';
|
||||
versionCode: number = 1;
|
||||
curVersion: number = 0;
|
||||
curVersion: string = '';
|
||||
|
||||
maxPlayerCnt: number = 0;
|
||||
timers: SERVER_TIMER[] = [];
|
||||
@@ -94,7 +94,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) || !isNumber(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)) {
|
||||
return false
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user