修改了礼物面板显示福袋礼物的bug

This commit is contained in:
fengshuo
2022-04-07 16:34:45 +08:00
parent aa976e273d
commit 8dcc6fe924
2 changed files with 9 additions and 4 deletions

View File

@@ -49,13 +49,15 @@
NSArray *luckyPoolGift = [GiftInfoModel modelsWithArray:data.data[@"luckyPoolGift"]];//
NSArray *normalGift = [GiftInfoModel modelsWithArray:data.data[@"normalGift"]]; //
NSMutableArray *info = [NSMutableArray array];
NSMutableArray *totalInfo = [NSMutableArray array];
[info addObjectsFromArray:luckyBagGift];
[info addObjectsFromArray:vipGift];
[info addObjectsFromArray:luckyPoolGift];
[info addObjectsFromArray:normalGift];
[totalInfo addObjectsFromArray:info];
[totalInfo addObjectsFromArray:luckyPoolGift];
///
[[XPGiftStorage shareStorage] saveGiftDatasource:info roomUid:roomUid];
[[XPGiftStorage shareStorage] writeGiftToDirectory:info];
[[XPGiftStorage shareStorage] writeGiftToDirectory:totalInfo];
[[self getView] getNormalGiftListSuccess:info];
}fail:^(NSInteger code, NSString * _Nullable msg) {
[[self getView] getNormalGiftListFail:msg];