修复了私聊送礼物展示的用户首充信息不对的问题

This commit is contained in:
fengshuo
2022-06-14 17:44:24 +08:00
parent 63a90eebe3
commit 2086e2a2cc
4 changed files with 28 additions and 13 deletions

View File

@@ -16,6 +16,7 @@
#import "ThemeColor+SendGift.h"
#import "StatisticsServiceHelper.h"
#import "XPHtmlUrl.h"
#import "AccountInfoStorage.h"
///Model
#import "GiftInfoModel.h"
#import "XPGiftCountModel.h"
@@ -51,7 +52,7 @@
@property (nonatomic,strong) XPGiftBarView *giftBarView;
///View
@property (nonatomic,strong) UIView * bottomView;
///uid
///uid/ uid
@property (nonatomic,copy) NSString *roomUid;
///使
@property (nonatomic,assign) SendGiftType usingplaceType;
@@ -120,6 +121,7 @@
}
- (void)initHttpRequest {
[self.presenter getUserInfo:[AccountInfoStorage instance].getUid];
[self.presenter getUserWallInfo];
[self.presenter getNormalGiftList:self.roomUid];
[self.presenter getPackGiftList];
@@ -388,6 +390,11 @@
}
#pragma mark - XPGiftProtocol
- (void)onGetUserInfoSuccess:(UserInfoModel *)userInfo {
self.giftBarView.isShowFirstRecharge = userInfo.isFirstCharge;
self.giftInfoView.curUserNobleLevel = userInfo.userVipInfoVO.vipLevel;
}
- (void)getUserWalletInfo:(WalletInfoModel *)balanceInfo {
self.giftBarView.walletInfoModel = balanceInfo;
}
@@ -466,12 +473,6 @@
}
#pragma mark - Getters And Setters
- (void)setDelegate:(id<RoomHostDelegate>)delegate {
_delegate = delegate;
self.giftBarView.isShowFirstRecharge = self.delegate.getUserInfo.isFirstCharge;
self.giftInfoView.curUserNobleLevel = self.delegate.getUserInfo.userVipInfoVO.vipLevel;
}
- (void)setUsingplaceType:(SendGiftType)usingplaceType {
_usingplaceType = usingplaceType;
self.giftInfoView.usingplaceType = _usingplaceType;