@pisell/pisellos 2.2.317 → 2.2.318

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.
@@ -71,8 +71,8 @@ export interface OrderGiftSelectResult {
71
71
  /**
72
72
  * 赠品解析回调签名(SDK → OS 的返回值)。
73
73
  *
74
- * - 唯一且无规格/套餐的候选:SDK 自动构造商品
75
- * - 有规格/套餐或多个候选:SDK 弹窗等用户确认后构造
74
+ * - 单选项:SDK 内部自动构造商品,不弹窗
75
+ * - 多选项:SDK 弹窗等用户确认后构造
76
76
  * - 用户取消:抛错或返回空数组(OS 视为放弃本次添加)
77
77
  *
78
78
  * 返回数组时沿用旧协议,只写 tempOrder.products;返回对象时可同时写入预约 bookings。
@@ -30,8 +30,8 @@ export var OrderHooks = /*#__PURE__*/function (OrderHooks) {
30
30
  /**
31
31
  * 赠品解析回调签名(SDK → OS 的返回值)。
32
32
  *
33
- * - 唯一且无规格/套餐的候选:SDK 自动构造商品
34
- * - 有规格/套餐或多个候选:SDK 弹窗等用户确认后构造
33
+ * - 单选项:SDK 内部自动构造商品,不弹窗
34
+ * - 多选项:SDK 弹窗等用户确认后构造
35
35
  * - 用户取消:抛错或返回空数组(OS 视为放弃本次添加)
36
36
  *
37
37
  * 返回数组时沿用旧协议,只写 tempOrder.products;返回对象时可同时写入预约 bookings。
@@ -315,6 +315,8 @@ export declare class OrderModule extends BaseModule implements Module {
315
315
  */
316
316
  private getOrderStorageKey;
317
317
  private getPersistedOrderStorageKey;
318
+ private getRealOrderId;
319
+ private findLocalOrderIndexByIdentity;
318
320
  private getOrderIdentityMatchKeys;
319
321
  private doOrdersShareIdentity;
320
322
  private findOrderIndexByIdentity;
@@ -346,6 +348,10 @@ export declare class OrderModule extends BaseModule implements Module {
346
348
  private getStorageItem;
347
349
  private setStorageItem;
348
350
  private loadOrdersFromSQLite;
351
+ /** 历史记录只按真实订单 ID / 唯一本地编号归组,不使用桌号或小票短号。 */
352
+ private deduplicateStoredOrders;
353
+ private mergeStoredOrderCopies;
354
+ private writeOrderRowsToSQLite;
349
355
  private isPendingSyncOrder;
350
356
  private isDraftOrder;
351
357
  private shouldProtectDraftOrderFromIncoming;