@pisell/pisellos 2.2.174 → 2.2.176

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.
@@ -497,6 +497,9 @@ var BookingTicketImpl = class extends import_BaseSales.BaseSalesImpl {
497
497
  const next = this.buildOrderCustomerPayload();
498
498
  this.core.effects.emit(`${this.name}:onOrderCustomerChange`, next);
499
499
  this.refreshDiscountConfigAfterOrderCustomerChange(patch.customer_id);
500
+ void this.store.order.applyPromotion().catch((error) => {
501
+ console.error("[BookingTicket] applyPromotion after customer change failed", error);
502
+ });
500
503
  }
501
504
  /**
502
505
  * 读取 tempOrder 上的下单客户协议字段;customer_id 缺失时返回 null。
@@ -75,8 +75,10 @@ function buildCartView(lines, bookings) {
75
75
  };
76
76
  });
77
77
  const items = productLines.filter((line) => {
78
- var _a;
79
- const uid = (_a = line.metadata) == null ? void 0 : _a.unique_identification_number;
78
+ var _a, _b;
79
+ if ((_a = line.metadata) == null ? void 0 : _a._giftInfo)
80
+ return false;
81
+ const uid = (_b = line.metadata) == null ? void 0 : _b.unique_identification_number;
80
82
  if (uid === void 0 || uid === null || uid === "")
81
83
  return true;
82
84
  return !claimedUids.has(String(uid));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.2.174",
4
+ "version": "2.2.176",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",