修复了私聊送礼物展示的用户首充信息不对的问题
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user