@be-link/ecommerce-store-service-node-sdk 0.1.18 → 0.1.19

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.
@@ -90,6 +90,7 @@ export declare namespace Store {
90
90
  interface StoreGroup {
91
91
  /** 标签列表 */
92
92
  tags: Array<{
93
+ tagId: string;
93
94
  /** 标签名称 */
94
95
  tagName: string;
95
96
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-store-service-node-sdk",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "EcommerceStoreService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/utils/http.js CHANGED
@@ -89,24 +89,19 @@ async function callApi(url, request) {
89
89
  const beLinkUserId = ctx?.get('beLinkUserId') || '';
90
90
  const pandoraRoleId = ctx?.get('pandoraRoleId') || '';
91
91
  const realIp = ctx?.get('realIp') || '';
92
- try {
93
- const response = await axios_1.default.post(url, request || {}, {
94
- headers: {
95
- 'x-request-id': requestId,
96
- 'x-belink-pandora-userid': pandoraUserId,
97
- 'x-belink-userid': beLinkUserId,
98
- 'x-belink-pandora-roleid': pandoraRoleId,
99
- 'x-real-ip': realIp,
100
- Connection: 'keep-alive',
101
- },
102
- timeout: HTTP_CONFIG.requestTimeout,
103
- httpAgent,
104
- httpsAgent,
105
- });
106
- const responseData = response.data;
107
- return responseData.data;
108
- }
109
- catch (error) {
110
- throw error;
111
- }
92
+ const response = await axios_1.default.post(url, request || {}, {
93
+ headers: {
94
+ 'x-request-id': requestId,
95
+ 'x-belink-pandora-userid': pandoraUserId,
96
+ 'x-belink-userid': beLinkUserId,
97
+ 'x-belink-pandora-roleid': pandoraRoleId,
98
+ 'x-real-ip': realIp,
99
+ Connection: 'keep-alive',
100
+ },
101
+ timeout: HTTP_CONFIG.requestTimeout,
102
+ httpAgent,
103
+ httpsAgent,
104
+ });
105
+ const responseData = response.data;
106
+ return responseData.data;
112
107
  }