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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgt-node-utils",
3
- "version": "1.2.55",
3
+ "version": "1.2.57",
4
4
  "description": "WGT工具类包",
5
5
  "main": "dist/bundle.js",
6
6
  "scripts": {
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 = this.getMainDomainByHostname(hostname);
156
+ const mainDomain = self.getMainDomainByHostname(hostname);
156
157
  return `https://img.${mainDomain}`;
157
158
  }
158
159
  }