移除多个文件中的 TODO 注释,优化代码可读性,增强逻辑清晰度。

This commit is contained in:
edwinQQQ
2025-09-18 14:30:21 +08:00
parent ddd54b96c5
commit 22c7cdb1e8
13 changed files with 10 additions and 23 deletions

View File

@@ -253,12 +253,6 @@
// 🔧
[self handleLagCountWithDuration:duration stackTrace:stackTrace];
// TODO:
// 1.
// 2.
// 3.
// 4.
}
#pragma mark -

View File

@@ -108,7 +108,6 @@
if (code == 200) {
RoomInfoModel * roomInfo = [RoomInfoModel modelWithDictionary:data.data];
if (roomInfo.uid && self.userInfo.uid && self.userInfo.nick.length > 0) {
//退 TODO
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController.viewControllers enumerateObjectsUsingBlock:^(__kindof UIViewController * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
if ([obj isKindOfClass:[XPRoomViewController class]]) {
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController popToRootViewControllerAnimated:NO];

View File

@@ -91,7 +91,6 @@
- (void)enterButtonAction:(UIButton *)sender {
if (self.shareInfo.routerValue.length > 0) {
UIViewController * controllerView = [XCCurrentVCStackManager shareManager].getCurrentVC;
//退 TODO
[controllerView.navigationController.viewControllers enumerateObjectsUsingBlock:^(__kindof UIViewController * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
if ([obj isKindOfClass:[XPRoomViewController class]]) {
[controllerView.navigationController popToRootViewControllerAnimated:NO];

View File

@@ -96,7 +96,6 @@
- (void)backViewTapRecognozer {
if (self.userInfo.uid.length > 0) {
UIViewController * controllerView = [XCCurrentVCStackManager shareManager].getCurrentVC;
//退 TODO
[controllerView.navigationController.viewControllers enumerateObjectsUsingBlock:^(__kindof UIViewController * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
if ([obj isKindOfClass:[XPRoomViewController class]]) {
[controllerView.navigationController popToRootViewControllerAnimated:NO];

View File

@@ -143,7 +143,6 @@
}
- (void)event:(UITapGestureRecognizer *)gesture {
UIViewController * controllerView = [XCCurrentVCStackManager shareManager].getCurrentVC;
//退 TODO
[controllerView.navigationController.viewControllers enumerateObjectsUsingBlock:^(__kindof UIViewController * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
if ([obj isKindOfClass:[XPRoomViewController class]]) {
[controllerView.navigationController popToRootViewControllerAnimated:NO];

View File

@@ -113,7 +113,6 @@
{
if (value.length > 0) {
UIViewController * controllerView = [XCCurrentVCStackManager shareManager].getCurrentVC;
//退 TODO
[controllerView.navigationController.viewControllers enumerateObjectsUsingBlock:^(__kindof UIViewController * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
if ([obj isKindOfClass:[XPRoomViewController class]]) {
[controllerView.navigationController popToRootViewControllerAnimated:NO];

View File

@@ -190,7 +190,6 @@
#pragma mark - XPMineAttentionTableViewCellDelegate
- (void)xPMineAttentionTableViewCell:(XPMineAttentionTableViewCell *)view findUser:(NSString *)uid {
//TODO:退 TODO
[self.navigationController.viewControllers enumerateObjectsUsingBlock:^(__kindof UIViewController * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
if ([obj isKindOfClass:[XPRoomViewController class]]) {
[self.navigationController popToRootViewControllerAnimated:NO];

View File

@@ -337,7 +337,6 @@ HWDMP4PlayDelegate>
[self.navigationController popViewControllerAnimated:YES];
return;
}
//退 TODO
[self.navigationController.viewControllers enumerateObjectsUsingBlock:^(__kindof UIViewController * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
if ([obj isKindOfClass:[XPRoomViewController class]]) {
[self.navigationController popToRootViewControllerAnimated:NO];

View File

@@ -127,7 +127,6 @@
NSString * roomId = [NSString stringWithFormat:@"%ld", self.hostDelegate.getRoomInfo.uid];
// NSLog(@"用户ID%@房间ID%@, 游戏ID%lld, code:%@", userId, roomId, self.currentmgId, self.code);
// TODO:
NSString *language = @"en-US";
if (isMSZH()) {
language = @"zh-TW";

View File

@@ -80,7 +80,6 @@
if (data) {
RedEnvelopeListVo *vo = [RedEnvelopeListVo modelWithJSON:data];
if (vo.roomUid != self.roomUid.integerValue) {
// TODO:
return;
}

View File

@@ -83,7 +83,7 @@ NSString * const kRoomShowTopicKey = @"kRoomShowTopicKey";
@property (nonatomic, assign) NSInteger atCount;
///@
@property (nonatomic, strong) NSMutableArray *locationArray;
///messageView TODO:
///messageView
@property (nonatomic,strong) XPRoomMessageParser *messageParser;
@property(nonatomic,strong) PIRoomPhotoAlbumItemModel *lookUpModel;

View File

@@ -277,7 +277,10 @@
self.idLabel.text = [NSString stringWithFormat:@"ID%ld",(long)roomInfo.erbanNo];
self.avatarView.imageUrl = roomInfo.avatar;
self.titleLabel.text = roomInfo.title;
// 使 isGiftEffectsEnabledForRoom:
[self updateGiftEffectImageViewVisibility];
if (roomInfo.uid == [AccountInfoStorage instance].getUid.integerValue) {
self.collectButton.hidden = YES;
} else {
@@ -544,12 +547,13 @@
NSString *roomId = @(roomInfo.roomId).stringValue;
BOOL turboGiftEffectsEnabled = [[TurboModeStateManager sharedManager] isGiftEffectsEnabledForRoom:roomId];
// TODO: 1. 使 isGiftEffectsEnabledForRoom: NO = hidden2. TurboModeStateManager isGiftEffectsEnabledForRoom
BOOL shouldShow = turboGiftEffectsEnabled && !roomInfo.hasAnimationEffect;
// turboGiftEffectsEnabled NO noGiftEffectImageView
// 使 turboGiftEffectsEnabled roomInfo.hasAnimationEffect
BOOL shouldShow = !turboGiftEffectsEnabled;
self.noGiftEffectImageView.hidden = !shouldShow;
NSLog(@"🎮 RoomHeaderView: giftEffectImageView 显示状态更新 - 房间ID: %@, turboGiftEffects: %@, hasAnimationEffect: %@, 显示: %@",
roomId, turboGiftEffectsEnabled ? @"开启" : @"关闭", roomInfo.hasAnimationEffect ? @"有" : @"无", shouldShow ? @"是" : @"否");
NSLog(@"🎮 RoomHeaderView: giftEffectImageView 显示状态更新 - 房间ID: %@, turboGiftEffects: %@, 显示: %@",
roomId, turboGiftEffectsEnabled ? @"开启" : @"关闭", shouldShow ? @"是" : @"否");
}
- (void)handleTurboGiftEffectsStateChanged:(NSNotification *)notification {

View File

@@ -88,9 +88,7 @@ static __weak UIViewController *_presentingVC = nil;
NSString *remainingText = [dic objectForKey:@"remainingString"];
NSString *urlStr = [dic objectForKey:@"url"];
NSURL *url = urlStr.length > 0 ? [NSURL URLWithString:urlStr] : nil;
// TODO:
// 2.
NSString *title = @"🎵 发现精彩内容";
NSString *subtitle = remainingText.length > 0 ? remainingText : @"快来看看这个有趣的内容吧!";