From 5d78d6edb1bba309625a760569140e90b6da974a Mon Sep 17 00:00:00 2001 From: fengshuo <963787902@qq.com> Date: Fri, 6 Jan 2023 14:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=98=9F=E5=BA=A7?= =?UTF-8?q?=E7=A4=BC=E7=89=A9=20=E5=85=B3=E9=97=AD=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=90=8E=E5=8F=B0=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SendGiftView/View/XPSendGiftView.m | 22 ++++++++++++------- xplan-ios/Main/Tabbar/ClientDataModel.h | 2 ++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/xplan-ios/Main/ModuleKit/SendGiftView/View/XPSendGiftView.m b/xplan-ios/Main/ModuleKit/SendGiftView/View/XPSendGiftView.m index 93431474..ccfa4058 100644 --- a/xplan-ios/Main/ModuleKit/SendGiftView/View/XPSendGiftView.m +++ b/xplan-ios/Main/ModuleKit/SendGiftView/View/XPSendGiftView.m @@ -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]; diff --git a/xplan-ios/Main/Tabbar/ClientDataModel.h b/xplan-ios/Main/Tabbar/ClientDataModel.h index ea74a3ac..50696ff1 100644 --- a/xplan-ios/Main/Tabbar/ClientDataModel.h +++ b/xplan-ios/Main/Tabbar/ClientDataModel.h @@ -31,6 +31,8 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic,strong) AdvertiseModel *splashVo; ///官方消息Uid列表 @property (nonatomic, strong) NSArray *officialMsgUids; +///星座礼物顶部是否开启 +@property (nonatomic,assign) BOOL twelveStarSwitch; @end