wgt-node-utils 1.2.55 → 1.2.57
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 +2 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -148,11 +148,12 @@ 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)) {
|
|
153
154
|
return `https://img.enjoy4fun.com`;
|
|
154
155
|
} else {
|
|
155
|
-
const mainDomain =
|
|
156
|
+
const mainDomain = self.getMainDomainByHostname(hostname);
|
|
156
157
|
return `https://img.${mainDomain}`;
|
|
157
158
|
}
|
|
158
159
|
}
|