@pisell/pisellos 0.0.440 → 0.0.441

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.
@@ -4103,12 +4103,17 @@ export var CheckoutImpl = /*#__PURE__*/function (_BaseModule) {
4103
4103
  payment_status: latestPaymentStatus
4104
4104
  });
4105
4105
  case 81:
4106
+ // 最后同步一个支付项添加成功事件,让购物车那边也显示支付成功
4107
+ // 触发支付项添加事件(可以复用支付开始事件)
4108
+ this.core.effects.emit("".concat(this.name, ":onPaymentItemAdded"), {
4109
+ orderUuid: orderUuid
4110
+ });
4106
4111
  return _context40.abrupt("return", {
4107
4112
  success: true,
4108
4113
  orderId: realOrderId,
4109
4114
  response: checkoutResponse
4110
4115
  });
4111
- case 82:
4116
+ case 83:
4112
4117
  case "end":
4113
4118
  return _context40.stop();
4114
4119
  }
@@ -2596,6 +2596,9 @@ var CheckoutImpl = class extends import_BaseModule.BaseModule {
2596
2596
  await this.payment.updateOrderAsync(orderUuid, {
2597
2597
  payment_status: latestPaymentStatus
2598
2598
  });
2599
+ this.core.effects.emit(`${this.name}:onPaymentItemAdded`, {
2600
+ orderUuid
2601
+ });
2599
2602
  return {
2600
2603
  success: true,
2601
2604
  orderId: realOrderId,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.440",
4
+ "version": "0.0.441",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",