创建大区参数增加热更新地址
This commit is contained in:
@@ -135,6 +135,7 @@ export class CreateRegionParam {
|
||||
gameHost: string; // 长链接
|
||||
webHost: string; // 短链接
|
||||
gmPort: number; // 后台使用的connector端口
|
||||
updateResUrl: string; // 热更新资源根目录
|
||||
|
||||
constructor(obj: any) {
|
||||
for(let key in obj) {
|
||||
@@ -143,7 +144,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)) {
|
||||
if(!this.name || !this.prefix || !this.env || !this.gmLink || !this.gameHost || !this.gmPort || !this.webHost || !isNumber(this.gmPort) || !isNumber(this.versionCode) || !this.updateResUrl) {
|
||||
return false
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user