红包bug修复

This commit is contained in:
liyuhua
2023-10-27 16:17:05 +08:00
parent 6b1f150b65
commit 71cbfd649b
31 changed files with 282 additions and 83 deletions

View File

@@ -641,6 +641,7 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
XPRedPacketModel *data = [XPRedPacketModel modelWithDictionary:attachment.data];
data.validityType = 0;
data.kind = 1;
data.redEnvelopeId = attachment.data[@"redEnvelopeId"];
//
__block BOOL isInRoom;
[[XCCurrentVCStackManager shareManager].getCurrentVC.navigationController.viewControllers enumerateObjectsUsingBlock:^(__kindof UIViewController * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
@@ -653,11 +654,16 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
} else {
view.inAllPacketRoom = NO;
}
view.receiveModel = data;
[roomVC.view addSubview:view];
[roomVC.view bringSubviewToFront:view];
*stop = YES;
view.receiveModel = data;
isInRoom = YES;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[roomVC.view addSubview:view];
[roomVC.view bringSubviewToFront:view];
});
*stop = YES;
}
}];
if (!isInRoom) {