购买页面提示取消

This commit is contained in:
Eamon-meng
2026-06-02 13:19:28 +08:00
parent db1acf6f70
commit 99039b6622

View File

@@ -21,14 +21,7 @@ export type PurchaseSkuData = {
export function parsePurchaseSkuList(kind: PurchaseKind, skuList: ProductItem['skus']): PurchaseSkuData { export function parsePurchaseSkuList(kind: PurchaseKind, skuList: ProductItem['skus']): PurchaseSkuData {
if (!skuList?.length) { if (!skuList?.length) {
return { throw new Error('没有套餐数据')
items: [],
priceMap: new Map(),
countMinMap: new Map(),
modeList: [],
liveList: [],
expireList: [],
}
} }
const items: PurchaseSkuItem[] = [] const items: PurchaseSkuItem[] = []
@@ -82,14 +75,7 @@ export function parsePurchaseSkuList(kind: PurchaseKind, skuList: ProductItem['s
} }
if (items.length === 0) { if (items.length === 0) {
return { throw new Error('没有可用的套餐数据')
items: [],
priceMap,
countMinMap,
modeList: [],
liveList: [],
expireList: [],
}
} }
return { return {