wgt-node-utils 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +1 -1
- package/package.json +1 -1
- package/src/index.js +4 -4
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -414,7 +414,7 @@ class wgtNodeUtils {
|
|
|
414
414
|
}
|
|
415
415
|
return value;
|
|
416
416
|
});
|
|
417
|
-
|
|
417
|
+
}
|
|
418
418
|
/**
|
|
419
419
|
* 验证是否为空对像
|
|
420
420
|
* @param v 对象
|
|
@@ -609,11 +609,10 @@ class wgtNodeUtils {
|
|
|
609
609
|
let domainArr = hostName.split('.');
|
|
610
610
|
let domain = domainArr.slice(-2).join('.');
|
|
611
611
|
let gameDomain = this.gameResourcesMap[domain];
|
|
612
|
-
|
|
613
612
|
// 当前没有map 中没有存储新的 domain,创建新的map
|
|
614
613
|
if (!gameDomain) {
|
|
615
614
|
gameDomain = `https://game.${domain}`;
|
|
616
|
-
const isAvailable = await checkDomainAvailability(
|
|
615
|
+
const isAvailable = await this.checkDomainAvailability(`https://game.${domain}`);
|
|
617
616
|
if (isAvailable) {
|
|
618
617
|
console.log('gameDomain可用,使用新的域名')
|
|
619
618
|
this.gameResourcesMap[domain] = gameDomain;
|
|
@@ -637,6 +636,7 @@ class wgtNodeUtils {
|
|
|
637
636
|
console.log(new Date(), 'gameResourcesMap:存在使用替换新的域名', this.gameResourcesMap, 'gameDomain', gameDomain, 'gameLink', gameLink);
|
|
638
637
|
return gameLink;
|
|
639
638
|
} catch (error) {
|
|
639
|
+
console.log(error, 'ReplaceGameResourcesError')
|
|
640
640
|
gameLink = link;
|
|
641
641
|
}
|
|
642
642
|
|
|
@@ -673,7 +673,7 @@ class wgtNodeUtils {
|
|
|
673
673
|
if (file && file.length > 0) {
|
|
674
674
|
return true;
|
|
675
675
|
}
|
|
676
|
-
this.appendLog(
|
|
676
|
+
this.appendLog(`文件加载失败:${pageName}[${item}]`, 'test', 'test');
|
|
677
677
|
return false;
|
|
678
678
|
});
|
|
679
679
|
this.filesErrorSendStatus = !fileStatus;
|