完成 Moment 和 Mine 模块的 API 集成
Moment 模块: - ✅ 集成真实动态列表 API (momentsRecommendList) - ✅ 集成点赞 API (momentsLike) - ✅ 使用 MomentsInfoModel 替代 mock 数据 - ✅ 实现时间格式化(相对时间显示) - ✅ 实现点赞状态切换和 UI 更新 - ✅ 分页加载功能完善 Mine 模块: - ✅ 集成用户信息 API (getUserInfo) - ✅ 集成钱包信息 API (getUserWalletInfo) - ✅ 使用 UserInfoModel 和 WalletInfoModel - ✅ 头部视图动态显示真实数据 - ✅ 昵称、等级、经验、关注/粉丝数 改进: - NewMomentCell: 支持点赞交互,实时更新 - NewMineViewController: viewWillAppear 时自动刷新数据 - 所有 API 调用都有错误处理和日志 下一步: - 测试真实 API 调用是否成功 - 完善评论和发布功能 - 准备图片资源
This commit is contained in:
@@ -84,11 +84,14 @@
|
||||
|
||||
}
|
||||
+(void)jumpToHomeVCWithInviteCode:(NSString *)inviteCode{
|
||||
TabbarViewController *vc = [[TabbarViewController alloc] init];
|
||||
vc.isFormLogin = YES;
|
||||
vc.inviteCode = inviteCode;
|
||||
BaseNavigationController *bnc = [[BaseNavigationController alloc] initWithRootViewController:vc];
|
||||
kWindow.rootViewController = bnc;
|
||||
// ========== 白牌版本:使用新的 NewTabBarController ==========
|
||||
// 原代码已注释,改用 Swift 实现的 NewTabBarController
|
||||
|
||||
NewTabBarController *newTabBar = [NewTabBarController create];
|
||||
[newTabBar refreshTabBarWithIsLogin:YES];
|
||||
|
||||
// 设置为根控制器(不需要 NavigationController 包装)
|
||||
kWindow.rootViewController = newTabBar;
|
||||
|
||||
// 登录成功并进入主页后,启动首充监控
|
||||
[[FirstRechargeManager sharedManager] startMonitoring];
|
||||
@@ -96,10 +99,21 @@
|
||||
// 初始化公共房间管理器
|
||||
[[PublicRoomManager sharedManager] initialize];
|
||||
|
||||
// 🔧 新增:启动 TurboModeStateManager
|
||||
// 🔧 启动 TurboModeStateManager
|
||||
NSString *userId = [[AccountInfoStorage instance] getUid];
|
||||
if (userId) {
|
||||
[[TurboModeStateManager sharedManager] startupWithCurrentUser:userId];
|
||||
}
|
||||
|
||||
NSLog(@"[PILoginManager] 已切换到白牌 TabBar:NewTabBarController");
|
||||
|
||||
// ========== 原代码(已注释) ==========
|
||||
/*
|
||||
TabbarViewController *vc = [[TabbarViewController alloc] init];
|
||||
vc.isFormLogin = YES;
|
||||
vc.inviteCode = inviteCode;
|
||||
BaseNavigationController *bnc = [[BaseNavigationController alloc] initWithRootViewController:vc];
|
||||
kWindow.rootViewController = bnc;
|
||||
*/
|
||||
}
|
||||
@end
|
||||
|
Reference in New Issue
Block a user