创建大区参数增加热更新地址

This commit is contained in:
liangtongchuan
2022-05-10 16:55:24 +08:00
parent 718e8bd37f
commit 2695d7e9fb

View File

@@ -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;