@pisell/pisellos 0.0.302 → 0.0.303

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.
@@ -521,6 +521,9 @@ export var CheckoutImpl = /*#__PURE__*/function (_BaseModule) {
521
521
  summaryDeposit.hasDeposit = true;
522
522
  }
523
523
  });
524
+
525
+ // 将总金额四舍五入到两位小数
526
+ summaryDeposit.total = new Decimal(summaryDeposit.total).toDecimalPlaces(2, Decimal.ROUND_HALF_UP).toNumber();
524
527
  return summaryDeposit;
525
528
  }
526
529
 
@@ -321,6 +321,7 @@ var CheckoutImpl = class extends import_BaseModule.BaseModule {
321
321
  summaryDeposit.hasDeposit = true;
322
322
  }
323
323
  });
324
+ summaryDeposit.total = new import_decimal.default(summaryDeposit.total).toDecimalPlaces(2, import_decimal.default.ROUND_HALF_UP).toNumber();
324
325
  return summaryDeposit;
325
326
  }
326
327
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.302",
4
+ "version": "0.0.303",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",