@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.
- package/package.json +1 -1
- package/pos/http.js +3 -1
package/package.json
CHANGED
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;
|