@be-link/pos-cli-nodejs 0.0.162 → 0.0.165
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 +2 -1
- package/types.d.ts +3 -1
package/package.json
CHANGED
package/pos/http.js
CHANGED
|
@@ -13,7 +13,8 @@ const axiosInstance = axios_1.default.create();
|
|
|
13
13
|
(0, axios_retry_1.default)(axiosInstance, {
|
|
14
14
|
retries: 1,
|
|
15
15
|
retryCondition(error) {
|
|
16
|
-
|
|
16
|
+
console.info(JSON.stringify(error));
|
|
17
|
+
return error.message.includes('getaddrinfo ENOTFOUND') || (Boolean(error.response) && [502, 503].includes(error.response.status));
|
|
17
18
|
},
|
|
18
19
|
retryDelay: (retryCount, error) => {
|
|
19
20
|
console.info(`retryCount: ${retryCount}, retryDelay: ${retryCount * 500}`);
|
package/types.d.ts
CHANGED
|
@@ -216,7 +216,9 @@ export interface IPositiveItemInfo {
|
|
|
216
216
|
/** 合作方 */
|
|
217
217
|
cooperator: string;
|
|
218
218
|
/** 酒店供应商 */
|
|
219
|
-
hotelSupplier
|
|
219
|
+
hotelSupplier?: string;
|
|
220
|
+
/** 农家乐供应商 */
|
|
221
|
+
farmHouseSupplier?: string;
|
|
220
222
|
/** 酒店班车供应商 */
|
|
221
223
|
shuttleBusSupplier: string;
|
|
222
224
|
/** 酒店班车供应商ID */
|