@pisell/pisellos 2.2.105 → 2.2.106

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
- // 检查识别码是否为9位且前3位为"000"
513
- isWalletCode = code.length === 9 && code.startsWith('000'); // 测试环境先使用 WL
514
- // const isWalletCode = code.startsWith('WL');
512
+ // 新钱包规则
513
+ isWalletCode = code.startsWith('WL') || code.startsWith('2') && 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(): "duration" | "session" | "normal";
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.length === 9 && code.startsWith("000");
357
+ const isWalletCode = code.startsWith("WL") || code.startsWith("2") && 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(): "duration" | "session" | "normal";
52
+ getProductType(): "normal" | "duration" | "session";
53
53
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.2.105",
4
+ "version": "2.2.106",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",