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