@pisell/pisellos 0.0.305 → 0.0.306

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.
@@ -1672,7 +1672,7 @@ export var CheckoutImpl = /*#__PURE__*/function (_BaseModule) {
1672
1672
  return _context19.abrupt("return");
1673
1673
  case 10:
1674
1674
  deposit_amount = newDepositValue === 1 ? this.store.currentOrder.deposit_amount : '0.00'; // 如果原来没有 deposit_amount,则默认把待付金额置为 deposit_amount
1675
- if (!deposit_amount) {
1675
+ if (!deposit_amount || Number(deposit_amount) === 0) {
1676
1676
  deposit_amount = this.store.currentOrder.expect_amount;
1677
1677
  }
1678
1678
 
@@ -1088,7 +1088,7 @@ var CheckoutImpl = class extends import_BaseModule.BaseModule {
1088
1088
  return;
1089
1089
  }
1090
1090
  let deposit_amount = newDepositValue === 1 ? this.store.currentOrder.deposit_amount : "0.00";
1091
- if (!deposit_amount) {
1091
+ if (!deposit_amount || Number(deposit_amount) === 0) {
1092
1092
  deposit_amount = this.store.currentOrder.expect_amount;
1093
1093
  }
1094
1094
  const updateParams = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.305",
4
+ "version": "0.0.306",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",