红包bug修复
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user