@be-link/pos-cli-nodejs 0.0.150 → 0.0.151

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/pos/http.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/pos-cli-nodejs",
3
- "version": "0.0.150",
3
+ "version": "0.0.151",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/pos/http.js CHANGED
@@ -29,7 +29,9 @@ async function callApi(url, ...request) {
29
29
  console.info(`准备发起POS请求[${requestId}]: ${url}, 参数: ${JSON.stringify(request)}`);
30
30
  const response = await axiosInstance.post(url, request[0], {
31
31
  headers: {
32
- 'X-Request-Id': requestId
32
+ 'X-Request-Id': requestId,
33
+ 'x-belink-accessType': 'authorizationTokenInside',
34
+ 'x-belink-authorization': process.env.authorizationTokenInside || ""
33
35
  }
34
36
  });
35
37
  const responseData = response.data;