处理vip逻辑

This commit is contained in:
2026-02-04 21:49:28 +08:00
parent b73f225d15
commit 35b1fc0f1e
8 changed files with 99 additions and 19 deletions

View File

@@ -17,6 +17,17 @@ NS_ASSUME_NONNULL_BEGIN
/// 默认 0
@property (nonatomic, assign) NSInteger initialSelectedIndex;
/// 通过键盘深链配置初始商品及是否自动发起购买(透传给 VIP 页)
- (void)configureWithProductId:(nullable NSString *)productId
autoPurchase:(BOOL)autoPurchase;
/// 通过键盘扩展预填充商品列表(免二次请求,透传给 VIP 页)
/// 注意selectedIndex 是商品列表下标,不是 VIP/SVIP 的 tab 下标
- (void)configureWithProductId:(nullable NSString *)productId
autoPurchase:(BOOL)autoPurchase
prefillProductsJSON:(nullable NSArray *)productsJSON
selectedIndex:(NSInteger)selectedIndex;
@end
NS_ASSUME_NONNULL_END