购买页面提示取消
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user