@pisell/pisellos 2.2.105 → 2.2.107
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.
|
@@ -509,9 +509,8 @@ export var WalletPassPaymentImpl = /*#__PURE__*/function () {
|
|
|
509
509
|
noCache: config.noCache || false
|
|
510
510
|
});
|
|
511
511
|
|
|
512
|
-
//
|
|
513
|
-
isWalletCode = code.
|
|
514
|
-
// const isWalletCode = code.startsWith('WL');
|
|
512
|
+
// 新钱包规则
|
|
513
|
+
isWalletCode = code.startsWith('WL') || code.startsWith('200') && code.length === 10;
|
|
515
514
|
if (!isWalletCode) {
|
|
516
515
|
_context6.next = 14;
|
|
517
516
|
break;
|
|
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
|
|
|
49
49
|
getCategories(): ProductCategory[];
|
|
50
50
|
setOtherParams(key: string, value: any): void;
|
|
51
51
|
getOtherParams(): any;
|
|
52
|
-
getProductType(): "
|
|
52
|
+
getProductType(): "normal" | "duration" | "session";
|
|
53
53
|
}
|
|
@@ -354,7 +354,7 @@ var WalletPassPaymentImpl = class {
|
|
|
354
354
|
code_length: code.length,
|
|
355
355
|
noCache: config.noCache || false
|
|
356
356
|
});
|
|
357
|
-
const isWalletCode = code.
|
|
357
|
+
const isWalletCode = code.startsWith("WL") || code.startsWith("200") && code.length === 10;
|
|
358
358
|
if (isWalletCode) {
|
|
359
359
|
const walletDetailParams = {
|
|
360
360
|
code,
|
|
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
|
|
|
49
49
|
getCategories(): ProductCategory[];
|
|
50
50
|
setOtherParams(key: string, value: any): void;
|
|
51
51
|
getOtherParams(): any;
|
|
52
|
-
getProductType(): "
|
|
52
|
+
getProductType(): "normal" | "duration" | "session";
|
|
53
53
|
}
|