@be-link/ecommerce-promotion-service-node-sdk 0.1.11 → 0.1.12

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.
@@ -7,8 +7,8 @@ export default abstract class BaseService {
7
7
  /** URL一级路径 */
8
8
  protected abstract prefixUrl: string;
9
9
  /** 子网域名 */
10
- protected readonly natDevHost = "http://promotion:8090/promotion";
11
- protected readonly natProdHost = "http://promotion:8090/promotion";
10
+ protected readonly natDevHost = "http://192.168.3.168:8090/promotion";
11
+ protected readonly natProdHost = "http://192.168.74.224:8090/promotion";
12
12
  /** 公网域名 */
13
13
  protected readonly publicDevHost = "https://ecommerce-dev.wejourney.top/promotion";
14
14
  protected readonly publicProdHost = "";
@@ -12,8 +12,8 @@ const string_1 = require("../utils/string");
12
12
  class BaseService {
13
13
  constructor() {
14
14
  /** 子网域名 */
15
- this.natDevHost = 'http://promotion:8090/promotion';
16
- this.natProdHost = 'http://promotion:8090/promotion';
15
+ this.natDevHost = 'http://192.168.3.168:8090/promotion';
16
+ this.natProdHost = 'http://192.168.74.224:8090/promotion';
17
17
  /** 公网域名 */
18
18
  this.publicDevHost = 'https://ecommerce-dev.wejourney.top/promotion';
19
19
  this.publicProdHost = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/utils/http.js CHANGED
@@ -69,6 +69,7 @@ async function callApi(url, request) {
69
69
  'x-belink-userid': beLinkUserId,
70
70
  'x-belink-pandora-roleid': pandoraRoleId,
71
71
  },
72
+ timeout: 3000,
72
73
  });
73
74
  const responseData = response.data;
74
75
  return responseData.data;