@pisell/pisellos 2.2.55 → 2.2.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.
|
@@ -332,7 +332,7 @@ export var PaymentModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
332
332
|
// 1. 筛选 status === 1 && disable === 0的数据
|
|
333
333
|
// 2. 检查列表里是否有 code=WALLET_PASS的数据,如果没有,则列表里如果有 PRODUCTVOUCHER 、 GIFTCARD 、 POINTCARD 则删除他们
|
|
334
334
|
// 如果有 code = WALLET_PASS的数据,则列表里PRODUCTVOUCHER 、 GIFTCARD 、 POINTCARD 的channel_application 指向 WALLET_PASS 的 channel_application
|
|
335
|
-
payMethods.filter(function (method) {
|
|
335
|
+
payMethods = payMethods.filter(function (method) {
|
|
336
336
|
return method.status === 1 && method.disable === 0;
|
|
337
337
|
});
|
|
338
338
|
walletPassMethod = payMethods.find(function (method) {
|
|
@@ -442,8 +442,7 @@ export var PaymentModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
442
442
|
return this.core.effects.emit("".concat(this.name, ":onPaymentMethodsLoaded"), payMethods);
|
|
443
443
|
case 46:
|
|
444
444
|
this.logInfo('getPayMethodListAsync completed successfully', {
|
|
445
|
-
|
|
446
|
-
hasCache: cachedMethods.length > 0
|
|
445
|
+
payMethods: payMethods
|
|
447
446
|
});
|
|
448
447
|
return _context4.abrupt("return", payMethods);
|
|
449
448
|
case 50:
|
|
@@ -204,7 +204,7 @@ var PaymentModule = class extends import_BaseModule.BaseModule {
|
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
async filterPayMethods(payMethods) {
|
|
207
|
-
payMethods.filter((method) => method.status === 1 && method.disable === 0);
|
|
207
|
+
payMethods = payMethods.filter((method) => method.status === 1 && method.disable === 0);
|
|
208
208
|
const walletPassMethod = payMethods.find((method) => method.code === "WALLET_PASS");
|
|
209
209
|
if (walletPassMethod) {
|
|
210
210
|
payMethods.forEach((method) => {
|
|
@@ -249,8 +249,7 @@ var PaymentModule = class extends import_BaseModule.BaseModule {
|
|
|
249
249
|
payMethods
|
|
250
250
|
);
|
|
251
251
|
this.logInfo("getPayMethodListAsync completed successfully", {
|
|
252
|
-
|
|
253
|
-
hasCache: cachedMethods.length > 0
|
|
252
|
+
payMethods
|
|
254
253
|
});
|
|
255
254
|
return payMethods;
|
|
256
255
|
} catch (error) {
|