1. bugs fix, 多是 UI 问题,部份是线上问题
2. 要注意更新数据时的保护操作
This commit is contained in:
eggmanQQQ
2024-06-21 16:14:36 +08:00
parent 9af02cd815
commit 2d4c030a09
21 changed files with 104 additions and 82 deletions

View File

@@ -223,7 +223,7 @@
self.collectButton.hidden = YES;
} else {
self.collectButton.hidden = NO;
self.collectButton.selected = roomInfo.isRoomFans;
// self.collectButton.selected = roomInfo.isRoomFans;
}
self.lockRoomImageView.hidden = roomInfo.roomPwd.length <= 0;
}
@@ -282,13 +282,11 @@
NSString * type = self.collectButton.selected ? @"2" : @"1";
NSString * uid = [AccountInfoStorage instance].getUid;
NSString * roomUid = [NSString stringWithFormat:@"%ld", self.hostDelegate.getRoomInfo.uid];
@kWeakify(self);
[Api collectRoom:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
@kStrongify(self);
if (code == 200) {
self.collectButton.selected = !self.collectButton.selected;
if ([type isEqualToString:@"1"]) {///
[XNDJTDDLoadingTool showSuccessWithMessage:YMLocalizedString(@"RoomHeaderView6")];
if (self.hadShowCollectInScreen) {