wgt-node-utils 1.2.55 → 1.2.58
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 +2 -2
- package/package.json +1 -1
- package/src/index.js +5 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -148,11 +148,15 @@ class wgtNodeUtils {
|
|
|
148
148
|
* @returns {string} imgDomain //图片地址前缀
|
|
149
149
|
*/
|
|
150
150
|
getImgDomainByHostname = (hostname, Env) => {
|
|
151
|
+
let self = this;
|
|
151
152
|
let needReplaceArr = [ 'pro', 'qa', 'dev', 'test', 'development' ];
|
|
152
153
|
if (needReplaceArr.includes(Env)) {
|
|
154
|
+
if(Env === 'qa' || Env === 'test') {
|
|
155
|
+
return `http://test-service.gamebridge.games/image_server`
|
|
156
|
+
}
|
|
153
157
|
return `https://img.enjoy4fun.com`;
|
|
154
158
|
} else {
|
|
155
|
-
const mainDomain =
|
|
159
|
+
const mainDomain = self.getMainDomainByHostname(hostname);
|
|
156
160
|
return `https://img.${mainDomain}`;
|
|
157
161
|
}
|
|
158
162
|
}
|