From 99039b66225ed87a31ce5987176b92c7db60e47e Mon Sep 17 00:00:00 2001 From: Eamon-meng <17516219072@163.com> Date: Tue, 2 Jun 2026 13:19:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E4=B9=B0=E9=A1=B5=E9=9D=A2=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=8F=96=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../composites/purchase/shared/sku.ts | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/components/composites/purchase/shared/sku.ts b/src/components/composites/purchase/shared/sku.ts index e409c8f..1bca87a 100644 --- a/src/components/composites/purchase/shared/sku.ts +++ b/src/components/composites/purchase/shared/sku.ts @@ -21,14 +21,7 @@ export type PurchaseSkuData = { export function parsePurchaseSkuList(kind: PurchaseKind, skuList: ProductItem['skus']): PurchaseSkuData { if (!skuList?.length) { - return { - items: [], - priceMap: new Map(), - countMinMap: new Map(), - modeList: [], - liveList: [], - expireList: [], - } + throw new Error('没有套餐数据') } const items: PurchaseSkuItem[] = [] @@ -82,14 +75,7 @@ export function parsePurchaseSkuList(kind: PurchaseKind, skuList: ProductItem['s } if (items.length === 0) { - return { - items: [], - priceMap, - countMinMap, - modeList: [], - liveList: [], - expireList: [], - } + throw new Error('没有可用的套餐数据') } return {