修复了星座礼物 关闭可以根据后台返回

This commit is contained in:
fengshuo
2023-01-06 14:07:30 +08:00
parent 375e93f79d
commit 5d78d6edb1
2 changed files with 16 additions and 8 deletions

View File

@@ -19,6 +19,7 @@
#import "XPHtmlUrl.h"
#import "AccountInfoStorage.h"
#import "NSArray+Safe.h"
#import "ClientConfig.h"
#import "XCCurrentVCStackManager.h"
///Model
#import "GiftInfoModel.h"
@@ -498,14 +499,19 @@
}
} else if(type == GiftSegmentType_WeekStar) {
[self.luckyBroadcastView removeFromSuperview];
if (!self.constellationBanner.superview) {
[self.view addSubview:self.constellationBanner];
[self.constellationBanner mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.mas_equalTo(self.contentView.mas_top);
make.left.right.mas_equalTo(0);
make.height.mas_equalTo(75);
}];
}
if ([ClientConfig shareConfig].configInfo.twelveStarSwitch) {
self.constellationBanner.hidden = NO;
if (!self.constellationBanner.superview) {
[self.view addSubview:self.constellationBanner];
[self.constellationBanner mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.mas_equalTo(self.contentView.mas_top);
make.left.right.mas_equalTo(0);
make.height.mas_equalTo(75);
}];
}
} else {
self.constellationBanner.hidden = YES;
}
} else {
[self.luckyBroadcastView removeFromSuperview];
[self.constellationBanner removeFromSuperview];

View File

@@ -31,6 +31,8 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic,strong) AdvertiseModel *splashVo;
///官方消息Uid列表
@property (nonatomic, strong) NSArray<NSString *> *officialMsgUids;
///星座礼物顶部是否开启
@property (nonatomic,assign) BOOL twelveStarSwitch;
@end