@be-link/ecommerce-trade-service-node-sdk 0.0.54 → 0.0.56
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/enums.d.ts +5 -1
- package/enums.js +4 -0
- package/package.json +1 -1
- package/types.d.ts +1 -1
- package/utils/http.js +2 -1
package/enums.d.ts
CHANGED
|
@@ -184,7 +184,11 @@ export declare namespace ENUM {
|
|
|
184
184
|
/** 支付有礼订单 */
|
|
185
185
|
PAY_GIFT = "PAY_GIFT",
|
|
186
186
|
/** 满赠订单 */
|
|
187
|
-
FULL_GIFT = "FULL_GIFT"
|
|
187
|
+
FULL_GIFT = "FULL_GIFT",
|
|
188
|
+
/** 一元入会订单 */
|
|
189
|
+
ONE_RMB_MEMBER = "ONE_RMB_MEMBER",
|
|
190
|
+
/** 黑钻会员订单 */
|
|
191
|
+
BLACK_DIAMOND_MEMBER = "BLACK_DIAMOND_MEMBER"
|
|
188
192
|
}
|
|
189
193
|
enum OrderPromotionType {
|
|
190
194
|
/** 满减优惠券 */
|
package/enums.js
CHANGED
|
@@ -206,6 +206,10 @@ var ENUM;
|
|
|
206
206
|
OrderType["PAY_GIFT"] = "PAY_GIFT";
|
|
207
207
|
/** 满赠订单 */
|
|
208
208
|
OrderType["FULL_GIFT"] = "FULL_GIFT";
|
|
209
|
+
/** 一元入会订单 */
|
|
210
|
+
OrderType["ONE_RMB_MEMBER"] = "ONE_RMB_MEMBER";
|
|
211
|
+
/** 黑钻会员订单 */
|
|
212
|
+
OrderType["BLACK_DIAMOND_MEMBER"] = "BLACK_DIAMOND_MEMBER";
|
|
209
213
|
})(OrderType = ENUM.OrderType || (ENUM.OrderType = {}));
|
|
210
214
|
let OrderPromotionType;
|
|
211
215
|
(function (OrderPromotionType) {
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
package/utils/http.js
CHANGED
|
@@ -82,7 +82,8 @@ async function callApi(url, request) {
|
|
|
82
82
|
console.error(`ecommerce-trade-service 异常: ${axiosError.message},requestId: ${requestId}`);
|
|
83
83
|
console.info('响应信息', data.message);
|
|
84
84
|
console.error('异常堆栈', JSON.stringify(error.stack));
|
|
85
|
-
throw new Error(data.errorType + ' - ' + data.message)
|
|
85
|
+
// throw new Error(data.errorType + ' - ' + data.message)
|
|
86
|
+
throw error;
|
|
86
87
|
}
|
|
87
88
|
// 调用dns模块解析url
|
|
88
89
|
const dns = await Promise.resolve().then(() => __importStar(require('dns')));
|