diff --git a/QXLive.xcodeproj/project.pbxproj b/QXLive.xcodeproj/project.pbxproj index 0df7629..37882ee 100644 --- a/QXLive.xcodeproj/project.pbxproj +++ b/QXLive.xcodeproj/project.pbxproj @@ -1064,7 +1064,7 @@ DEVELOPMENT_TEAM = 8798G5VMH9; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = QXLiveScreen/Info.plist; - INFOPLIST_KEY_CFBundleDisplayName = "秘地"; + INFOPLIST_KEY_CFBundleDisplayName = "羽声语音"; INFOPLIST_KEY_NSHumanReadableCopyright = ""; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1090,7 +1090,7 @@ DEVELOPMENT_TEAM = 8798G5VMH9; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = QXLiveScreen/Info.plist; - INFOPLIST_KEY_CFBundleDisplayName = "秘地"; + INFOPLIST_KEY_CFBundleDisplayName = "羽声语音"; INFOPLIST_KEY_NSHumanReadableCopyright = ""; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1116,7 +1116,7 @@ DEVELOPMENT_TEAM = 8798G5VMH9; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "QXLiveScreen copy-Info.plist"; - INFOPLIST_KEY_CFBundleDisplayName = "秘地"; + INFOPLIST_KEY_CFBundleDisplayName = "羽声语音测试"; INFOPLIST_KEY_NSHumanReadableCopyright = ""; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -1142,7 +1142,7 @@ DEVELOPMENT_TEAM = 8798G5VMH9; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "QXLiveScreen copy-Info.plist"; - INFOPLIST_KEY_CFBundleDisplayName = "秘地"; + INFOPLIST_KEY_CFBundleDisplayName = "羽声语音测试"; INFOPLIST_KEY_NSHumanReadableCopyright = ""; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( diff --git a/QXLive/Base/QXAppStartViewController.m b/QXLive/Base/QXAppStartViewController.m index ad782a8..f693073 100644 --- a/QXLive/Base/QXAppStartViewController.m +++ b/QXLive/Base/QXAppStartViewController.m @@ -17,7 +17,7 @@ [super viewDidLoad]; // Do any additional setup after loading the view. self.bgImaegView = [[UIImageView alloc] initWithFrame:[UIScreen mainScreen].bounds]; - self.bgImaegView.image = [UIImage imageNamed:@"app_start_midi1"];; + self.bgImaegView.image = [UIImage imageNamed:@"app_start_yusheng"];; self.bgImaegView.contentMode = UIViewContentModeScaleAspectFill; [self.view addSubview:self.bgImaegView]; // [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(loginSuccess) name:noticeUserLogin object:nil]; diff --git a/QXLive/Base/QXGlobal.m b/QXLive/Base/QXGlobal.m index a79bd73..47c097d 100644 --- a/QXLive/Base/QXGlobal.m +++ b/QXLive/Base/QXGlobal.m @@ -229,13 +229,10 @@ if (weakSelf.isClickJoinRoom) { return; } -// showLoadingInView(KEYWINDOW) weakSelf.isClickJoinRoom = YES; [[QXRoomMessageManager shared] joinGroupWithRoomId:roomId]; [QXMineNetwork joinRoomWithRoomId:roomId successBlock:^(QXRoomModel * _Nonnull roomModel) { [UIApplication sharedApplication].idleTimerDisabled = YES; -// hideLoadingInView(KEYWINDOW) - // roomModel.room_info.pk_room_id = @"33"; weakSelf.isClickJoinRoom = NO; weakSelf.roomVC = [[QXRoomViewController alloc] init]; weakSelf.roomVC.roomId = roomId; @@ -247,7 +244,6 @@ weakSelf.roomId = roomId; } failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) { showToast(msg); -// hideLoadingInView(KEYWINDOW) weakSelf.isClickJoinRoom = NO; }]; } diff --git a/QXLive/HomePage(声播)/Controlller/QXHomeViewController.m b/QXLive/HomePage(声播)/Controlller/QXHomeViewController.m index 59d7869..e0a821c 100644 --- a/QXLive/HomePage(声播)/Controlller/QXHomeViewController.m +++ b/QXLive/HomePage(声播)/Controlller/QXHomeViewController.m @@ -26,8 +26,10 @@ #import "QXNiceGiftPopView.h" // 天降好礼 #import "QXFirstRechargeView.h" // 首充好礼 #import "QXHomeTopView.h" +#import "QXSystemNoticeViewController.h" +#import "QXHotRoomViewController.h" -@interface QXHomeViewController () +@interface QXHomeViewController () @property (nonatomic, strong) JXPagerView *pagingView; @property (nonatomic,strong)JXCategoryTitleView *categoryView; @property (nonatomic,strong)NSMutableArray *listVCArray; @@ -401,7 +403,7 @@ self.appStoreView.hidden = YES; } // weakSelf.appStoreView.dataArray = list; - [self.topView reloadData]; + self.topView.dataArray = list; } failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) { }]; @@ -483,6 +485,31 @@ [self.navigationController pushViewController:userHomePage animated:YES]; } } +#pragma mark - QXHomeTopViewDelegate +-(void)didClickTopViewType:(QXHomeTopClickType)type{ + switch (type) { + case QXHomeTopClickTypeHotRoom:{ + QXHotRoomViewController *vc = [[QXHotRoomViewController alloc] init]; + vc.list = self.topView.dataArray; + [self.navigationController pushViewController:vc animated:YES]; + } + break; + case QXHomeTopClickTypeMyRoom: + [self gotoRoom]; + break; + case QXHomeTopClickTypeRank: + [self gotoRankVC]; + break; + case QXHomeTopClickTypeNotice:{ + QXSystemNoticeViewController *vc = [[QXSystemNoticeViewController alloc] init]; + vc.type = 0; + [self.navigationController pushViewController:vc animated:YES]; + } + break; + default: + break; + } +} -(void)gotoRoom{ @@ -602,6 +629,7 @@ -(QXHomeTopView *)topView{ if (!_topView) { _topView = [[QXHomeTopView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, ScaleWidth(184))]; + _topView.delegate = self; } return _topView; } diff --git a/QXLive/HomePage(声播)/Controlller/QXHotRoomViewController.h b/QXLive/HomePage(声播)/Controlller/QXHotRoomViewController.h new file mode 100644 index 0000000..0ae1a9b --- /dev/null +++ b/QXLive/HomePage(声播)/Controlller/QXHotRoomViewController.h @@ -0,0 +1,16 @@ +// +// QXHotRoomViewController.h +// QXLive +// +// Created by 启星 on 2025/10/21. +// + +#import "QXBaseViewController.h" +#import "QXRoomListModel.h" +NS_ASSUME_NONNULL_BEGIN + +@interface QXHotRoomViewController : QXBaseViewController +@property (nonatomic,strong)NSArray*list; +@end + +NS_ASSUME_NONNULL_END diff --git a/QXLive/HomePage(声播)/Controlller/QXHotRoomViewController.m b/QXLive/HomePage(声播)/Controlller/QXHotRoomViewController.m new file mode 100644 index 0000000..8469125 --- /dev/null +++ b/QXLive/HomePage(声播)/Controlller/QXHotRoomViewController.m @@ -0,0 +1,87 @@ +// +// QXHotRoomViewController.m +// QXLive +// +// Created by 启星 on 2025/10/21. +// + +#import "QXHotRoomViewController.h" +#import "QXHomeRoomCell.h" +@interface QXHotRoomViewController () +@property (nonatomic,strong)UICollectionView *collectionView; + +@end + +@implementation QXHotRoomViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view. +} +-(void)setNavgationItems{ + [super setNavgationItems]; + self.navigationItem.title = @"热门房间"; +} +-(void)viewWillAppear:(BOOL)animated{ + [super viewWillAppear:animated]; + [self.navigationController setNavigationBarHidden:NO animated:YES]; +} +-(void)initSubViews{ + [self.view addSubview:self.collectionView]; +} +#pragma mark - UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout +-(NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView{ + return 1; +} +-(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{ + return self.list.count; +} +-(__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{ + QXHomeRoomCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"QXHomeRoomCell" forIndexPath:indexPath]; + cell.model = self.list[indexPath.row]; + return cell; +} +-(void)collectionView:(UICollectionView *)collectionView willDisplayCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath{ + QXHomeRoomCell *roomCell = (QXHomeRoomCell *)cell; + [roomCell startAnimating]; +} +- (void)collectionView:(UICollectionView *)collectionView didEndDisplayingCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath{ + QXHomeRoomCell *roomCell = (QXHomeRoomCell *)cell; + [roomCell endAnimating]; +} + +-(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath{ + return CGSizeMake((SCREEN_WIDTH-15*3-1)/2.0, (SCREEN_WIDTH-15*3-1)/2.0); +} + +-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{ + QXRoomListModel *model = self.list[indexPath.row]; + [[QXGlobal shareGlobal] joinRoomWithRoomId:model.room_id isRejoin:NO navagationController:self.navigationController]; + +} +-(UICollectionView *)collectionView{ + if (!_collectionView) { + UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init]; + layout.minimumLineSpacing = 15; + layout.minimumInteritemSpacing = 15; + layout.sectionInset = UIEdgeInsetsMake(0, 15, 0, 15); + _collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 16, SCREEN_WIDTH, SCREEN_HEIGHT-NavContentHeight) collectionViewLayout:layout]; + _collectionView.delegate = self; + _collectionView.dataSource = self; + _collectionView.bounces = YES; + _collectionView.backgroundColor = [UIColor clearColor]; + [_collectionView registerNib:[UINib nibWithNibName:@"QXHomeRoomCell" bundle:[NSBundle mainBundle]] forCellWithReuseIdentifier:@"QXHomeRoomCell"]; + } + return _collectionView; +} +/* +#pragma mark - Navigation + +// In a storyboard-based application, you will often want to do a little preparation before navigation +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { + // Get the new view controller using [segue destinationViewController]. + // Pass the selected object to the new view controller. +} +*/ + +@end diff --git a/QXLive/HomePage(声播)/View/首页/QXHomeTopRoomCell.h b/QXLive/HomePage(声播)/View/首页/QXHomeTopRoomCell.h new file mode 100644 index 0000000..bb3e2dc --- /dev/null +++ b/QXLive/HomePage(声播)/View/首页/QXHomeTopRoomCell.h @@ -0,0 +1,18 @@ +// +// QXHomeTopRoomCell.h +// QXLive +// +// Created by 启星 on 2025/10/20. +// + +#import +#import "QXRoomListModel.h" +NS_ASSUME_NONNULL_BEGIN + +@interface QXHomeTopRoomCell : UICollectionViewCell +@property (weak, nonatomic) IBOutlet UIImageView *roomImageView; +@property (weak, nonatomic) IBOutlet UILabel *roomNameLabel; +@property (strong, nonatomic)QXRoomListModel *model ; +@end + +NS_ASSUME_NONNULL_END diff --git a/QXLive/HomePage(声播)/View/首页/QXHomeTopRoomCell.m b/QXLive/HomePage(声播)/View/首页/QXHomeTopRoomCell.m new file mode 100644 index 0000000..1d34576 --- /dev/null +++ b/QXLive/HomePage(声播)/View/首页/QXHomeTopRoomCell.m @@ -0,0 +1,21 @@ +// +// QXHomeTopRoomCell.m +// QXLive +// +// Created by 启星 on 2025/10/20. +// + +#import "QXHomeTopRoomCell.h" + +@implementation QXHomeTopRoomCell +-(void)setModel:(QXRoomListModel *)model{ + _model = model; + [self.roomImageView sd_setImageWithURL:[NSURL URLWithString:model.room_cover]]; + self.roomNameLabel.text = model.room_name; +} +- (void)awakeFromNib { + [super awakeFromNib]; + // Initialization code +} + +@end diff --git a/QXLive/HomePage(声播)/View/首页/QXHomeTopRoomCell.xib b/QXLive/HomePage(声播)/View/首页/QXHomeTopRoomCell.xib new file mode 100644 index 0000000..d7e4e71 --- /dev/null +++ b/QXLive/HomePage(声播)/View/首页/QXHomeTopRoomCell.xib @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/QXLive/HomePage(声播)/View/首页/QXHomeTopView.h b/QXLive/HomePage(声播)/View/首页/QXHomeTopView.h index ff3e29d..9981873 100644 --- a/QXLive/HomePage(声播)/View/首页/QXHomeTopView.h +++ b/QXLive/HomePage(声播)/View/首页/QXHomeTopView.h @@ -6,7 +6,7 @@ // #import - +#import "QXRoomListModel.h" NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger) { /// 热门房间 @@ -29,7 +29,7 @@ typedef NS_ENUM(NSInteger) { @end @interface QXHomeTopView : UIView @property (weak,nonatomic)iddelegate; --(void)reloadData; +@property (nonatomic,strong)NSArray *dataArray; @end diff --git a/QXLive/HomePage(声播)/View/首页/QXHomeTopView.m b/QXLive/HomePage(声播)/View/首页/QXHomeTopView.m index 15b2687..b4ecdc7 100644 --- a/QXLive/HomePage(声播)/View/首页/QXHomeTopView.m +++ b/QXLive/HomePage(声播)/View/首页/QXHomeTopView.m @@ -6,12 +6,17 @@ // #import "QXHomeTopView.h" -@interface QXHomeTopView() +#import "SDCycleScrollView.h" +#import "QXHomeTopRoomCell.h" + +@interface QXHomeTopView() @property (nonatomic,strong)UIImageView *hotRoomImageView; @property (nonatomic,strong)UIImageView *hotIconImageView; @property (nonatomic,strong)UILabel *hotLabel; @property (nonatomic,strong)UIButton *hotRoomBtn; +@property (nonatomic,strong)SDCycleScrollView *roomView; + @property (nonatomic,strong)QXHomeTopSubView *myRoomView; @property (nonatomic,strong)QXHomeTopSubView *rankView; @@ -49,6 +54,20 @@ make.width.height.mas_equalTo(ScaleWidth(18)); }]; + self.roomView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(16, ScaleWidth(48), (int)ScaleWidth(164), ScaleWidth(184-48)) delegate:self placeholderImage:nil]; + self.roomView.backgroundColor = [UIColor clearColor]; + self.roomView.bannerImageViewContentMode = UIViewContentModeScaleAspectFill; + [self.roomView addRoundedCornersWithRadius:8] ; +// self.roomView.pageControlBottomOffset = -10; + self.roomView.showPageControl = NO; + [self addSubview:self.roomView]; + [self.roomView mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(self); + make.top.equalTo(self.hotIconImageView.mas_bottom).offset(10); + make.width.equalTo(self.hotRoomImageView); + make.centerX.equalTo(self.hotRoomImageView); + }]; + self.hotRoomBtn = [[UIButton alloc] init]; [self.hotRoomBtn setImage:[UIImage imageNamed:@"home_hot_room_goto"] forState:(UIControlStateNormal)]; [self.hotRoomBtn addTarget:self action:@selector(hotRoomAction) forControlEvents:(UIControlEventTouchUpInside)]; @@ -104,9 +123,24 @@ make.height.mas_equalTo(ScaleWidth(56)); }]; } - --(void)reloadData{ - +- (UINib *)customCollectionViewCellNibForCycleScrollView:(SDCycleScrollView *)view{ + return [UINib nibWithNibName:@"QXHomeTopRoomCell" bundle:[NSBundle mainBundle]]; +} +- (void)setupCustomCell:(UICollectionViewCell *)cell forIndex:(NSInteger)index cycleScrollView:(SDCycleScrollView *)view{ + QXHomeTopRoomCell *roomCell = (QXHomeTopRoomCell*)cell; + roomCell.model = self.dataArray[index]; +} +-(void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index{ + QXRoomListModel *model = self.dataArray[index]; + [[QXGlobal shareGlobal] joinRoomWithRoomId:model.room_id isRejoin:NO navagationController:self.viewController.navigationController]; +} +-(void)setDataArray:(NSArray *)dataArray{ + _dataArray = dataArray; + NSMutableArray *arr = [NSMutableArray array]; + for (QXRoomListModel *md in dataArray) { + [arr addObject:md.room_cover]; + } + self.roomView.imageURLStringsGroup = arr; } -(void)didClickTopViewType:(QXHomeTopClickType)type{ if (self.delegate && [self.delegate respondsToSelector:@selector(didClickTopViewType:)]) { diff --git a/QXLive/Info.plist b/QXLive/Info.plist index 66d10ae..38c6a17 100644 --- a/QXLive/Info.plist +++ b/QXLive/Info.plist @@ -13,7 +13,7 @@ Editor CFBundleURLSchemes - midilive + qxlive diff --git a/QXLive/Login(登录)/Controlller/QXFillUserInfoViewController.m b/QXLive/Login(登录)/Controlller/QXFillUserInfoViewController.m index ff5d3f1..172ca27 100755 --- a/QXLive/Login(登录)/Controlller/QXFillUserInfoViewController.m +++ b/QXLive/Login(登录)/Controlller/QXFillUserInfoViewController.m @@ -82,7 +82,7 @@ } -(void)configLanguage{ - [self.comitUserInfoBtn setTitle:QXText(@"进入秘地") forState:(UIControlStateNormal)]; + [self.comitUserInfoBtn setTitle:QXText(@"进入羽声语音") forState:(UIControlStateNormal)]; [self.comitUserInfoBtn setTitleColor:QXConfig.btnTextColor forState:(UIControlStateNormal)]; self.comitUserInfoBtn.backgroundColor = QXConfig.themeColor; self.nickTitleLabel.text = QXText(@"起个好听的名字"); diff --git a/QXLive/Login(登录)/Controlller/QXLoginViewController.m b/QXLive/Login(登录)/Controlller/QXLoginViewController.m index 236d5af..20b1b47 100644 --- a/QXLive/Login(登录)/Controlller/QXLoginViewController.m +++ b/QXLive/Login(登录)/Controlller/QXLoginViewController.m @@ -78,7 +78,7 @@ self.isCodeLogin = YES; // self.welcomeLabel = [[UILabel alloc] initWithFrame:CGRectMake(16, kSafeAreaTop+86, SCREEN_WIDTH-32, 36)]; // self.welcomeLabel.font = [UIFont boldSystemFontOfSize:24]; -//// self.welcomeLabel.text = QXText(@"欢迎来到秘地"); +//// self.welcomeLabel.text = QXText(@"欢迎来到羽声语音"); //// welcome_midi // self.welcomeLabel.textColor = QXConfig.textColor; // [self.view addSubview:self.welcomeLabel]; diff --git a/QXLive/Manager/QXRoomMessageManager.m b/QXLive/Manager/QXRoomMessageManager.m index cc90926..945b783 100644 --- a/QXLive/Manager/QXRoomMessageManager.m +++ b/QXLive/Manager/QXRoomMessageManager.m @@ -11,6 +11,7 @@ #import "QXGiftPlayerManager.h" #import "QXGiftDisplayManager.h" #import +#import "TUIChatConfig.h" @interface QXRoomMessageManager() @property (nonatomic,strong)NSString *groupId; @@ -25,6 +26,19 @@ }); return global; } +- (instancetype)init +{ + self = [super init]; + if (self) { + /// 设置聊天消息是否展示已读未读,只有旗舰版才支持 +#if DEVELOPENT == 1 + [TUIChatConfig defaultConfig].msgNeedReadReceipt = NO; +#else + [TUIChatConfig defaultConfig].msgNeedReadReceipt = YES; +#endif + } + return self; +} -(void)joinGroupWithRoomId:(NSString *)roomId{ MJWeakSelf if (self.groupId) { diff --git a/QXLive/Message(音信)/Controller/QXMessageViewController.m b/QXLive/Message(音信)/Controller/QXMessageViewController.m index 4a89cf7..517aa82 100644 --- a/QXLive/Message(音信)/Controller/QXMessageViewController.m +++ b/QXLive/Message(音信)/Controller/QXMessageViewController.m @@ -131,7 +131,7 @@ -(QXSystemTopView *)topView{ if (!_topView) { - _topView = [[QXSystemTopView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 74*2+8)]; + _topView = [[QXSystemTopView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 74+8)]; _topView.delegate = self; } return _topView; diff --git a/QXLive/Message(音信)/View/QXSystemTopView.m b/QXLive/Message(音信)/View/QXSystemTopView.m index df88195..0ff7b70 100644 --- a/QXLive/Message(音信)/View/QXSystemTopView.m +++ b/QXLive/Message(音信)/View/QXSystemTopView.m @@ -24,17 +24,27 @@ } -(void)initSubviews{ MJWeakSelf - self.noticeView = [[QXSystemTopSubView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 74)]; - self.noticeView.iconImageView.image = [UIImage imageNamed:@"notice_icon"]; - self.noticeView.titleLabel.text = QXText(@"官方公告"); - [self.noticeView addTapBlock:^(id _Nonnull obj) { - if (weakSelf.delegate && [weakSelf.delegate respondsToSelector:@selector(didClickNoticeWithType:)]) { - [weakSelf.delegate didClickNoticeWithType:0]; - } - }]; - [self addSubview:self.noticeView]; +// self.noticeView = [[QXSystemTopSubView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 74)]; +// self.noticeView.iconImageView.image = [UIImage imageNamed:@"notice_icon"]; +// self.noticeView.titleLabel.text = QXText(@"官方公告"); +// [self.noticeView addTapBlock:^(id _Nonnull obj) { +// if (weakSelf.delegate && [weakSelf.delegate respondsToSelector:@selector(didClickNoticeWithType:)]) { +// [weakSelf.delegate didClickNoticeWithType:0]; +// } +// }]; +// [self addSubview:self.noticeView]; - self.systemView = [[QXSystemTopSubView alloc] initWithFrame:CGRectMake(0, 74, SCREEN_WIDTH, 74)]; +// self.systemView = [[QXSystemTopSubView alloc] initWithFrame:CGRectMake(0, 74, SCREEN_WIDTH, 74)]; +// self.systemView.iconImageView.image = [UIImage imageNamed:@"system_icon"]; +// self.systemView.titleLabel.text = QXText(@"系统消息"); +// [self addSubview:self.systemView]; +// [self.systemView addTapBlock:^(id _Nonnull obj) { +// if (weakSelf.delegate && [weakSelf.delegate respondsToSelector:@selector(didClickNoticeWithType:)]) { +// [weakSelf.delegate didClickNoticeWithType:1]; +// } +// }]; + + self.systemView = [[QXSystemTopSubView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 74)]; self.systemView.iconImageView.image = [UIImage imageNamed:@"system_icon"]; self.systemView.titleLabel.text = QXText(@"系统消息"); [self addSubview:self.systemView]; diff --git a/QXLive/Mine(音域)/View/充值/QXRechargeView.m b/QXLive/Mine(音域)/View/充值/QXRechargeView.m index d72b7e8..959e931 100644 --- a/QXLive/Mine(音域)/View/充值/QXRechargeView.m +++ b/QXLive/Mine(音域)/View/充值/QXRechargeView.m @@ -271,7 +271,7 @@ if (self.selectedPayTypeModel.type.intValue == 2) { NSDictionary *resultDict = dict[@"data"]; NSString *order = [NSString stringWithFormat:@"%@",resultDict[@"ali"]]; - [[AlipaySDK defaultService] payOrder:order fromScheme:@"midilive" callback:^(NSDictionary *resultDic) { + [[AlipaySDK defaultService] payOrder:order fromScheme:AppScheme callback:^(NSDictionary *resultDic) { NSLog(@"支付宝H5支付回调 - %@", resultDic); }]; @@ -300,7 +300,7 @@ NSMutableDictionary*dic = [NSMutableDictionary dictionaryWithDictionary:dict[@"data"][@"tl"]]; [dic removeObjectForKey:@"json_data"]; NSString *json = [dic jsonStringEncoded]; - NSString *thirdPartSchema = @"thirdPartSchema=qxlive://"; + NSString *thirdPartSchema = [NSString stringWithFormat:@"thirdPartSchema=%@://",AppScheme]; NSString *json1 = [json stringByReplacingOccurrencesOfString:@"\\" withString:@""]; NSCharacterSet *customSet1 = [[NSCharacterSet characterSetWithCharactersInString:@"!*'();:@&=+$,/?%#[]{}\""] invertedSet]; // NSCharacterSet *customSet2 = [[NSCharacterSet characterSetWithCharactersInString:@"!*'();:@&=+$,/?%#[]{}\""] invertedSet]; diff --git a/QXLive/Other/Base.lproj/LaunchScreen.storyboard b/QXLive/Other/Base.lproj/LaunchScreen.storyboard index a3a683a..d921eec 100644 --- a/QXLive/Other/Base.lproj/LaunchScreen.storyboard +++ b/QXLive/Other/Base.lproj/LaunchScreen.storyboard @@ -17,7 +17,7 @@ - + @@ -37,7 +37,7 @@ - + diff --git a/QXLive/Other/NoitceAndKey.h b/QXLive/Other/NoitceAndKey.h index 878ec8e..12867ed 100644 --- a/QXLive/Other/NoitceAndKey.h +++ b/QXLive/Other/NoitceAndKey.h @@ -20,6 +20,7 @@ typedef NS_ENUM(NSInteger) { // 三方平台 #if DEVELOPENT == 1 +static NSString *const AppScheme = @"qxlivetest"; static NSString *const WechatAppId = @"wxfc7bf7ca8c71840d"; static NSString *const WechatAppSecret = @"b220c133628ac57252cfa2deef03b144"; static NSString *const WechatUniversalLink = @"https://mdh.xscmmidi.site/"; @@ -43,7 +44,7 @@ static NSString *const AgoraAuthId = @"05b406b4541e413887d8d2bf9be8642c"; static NSString *const AuthSDKKey = @"Q8xhyn+MAyHw8FQLjKOWU8ZrZMXsuflPGSxDvwKu8ULvm8eZBPNLfezCsyuKzISPIGbMK5oR6fX/TyIdFwBjfL2lUteddxG+fu8aBuyScR066oDRhj66x97xM+9n6lnog9MOdMvGryx6PkZa1/un0IoX46SfrjpitnzYZvfFlavVDOq50iO4piAU/idOWnyY+1bQAnBQsfr8ZKHTAbpR2aUn4C6R37MvtXHnmD+o3Qjx0SbCxpsvs9h91/VBQ2+XEIynDIPDM+0="; #else - +static NSString *const AppScheme = @"qxlive"; static NSString *const WechatAppId = @"wxfc7bf7ca8c71840d"; static NSString *const WechatAppSecret = @"b220c133628ac57252cfa2deef03b144"; static NSString *const WechatUniversalLink = @"https://mdh.xscmmidi.site/"; diff --git a/QXLive/Other/app_start_midi1.png b/QXLive/Other/app_start_midi1.png deleted file mode 100644 index 3dc0187..0000000 Binary files a/QXLive/Other/app_start_midi1.png and /dev/null differ diff --git a/QXLive/Other/app_start_yusheng.png b/QXLive/Other/app_start_yusheng.png new file mode 100644 index 0000000..6dd4812 Binary files /dev/null and b/QXLive/Other/app_start_yusheng.png differ diff --git a/QXLive/Other/zh-Hans.lproj/Localizable.strings b/QXLive/Other/zh-Hans.lproj/Localizable.strings index 03742e5..c5d3348 100644 --- a/QXLive/Other/zh-Hans.lproj/Localizable.strings +++ b/QXLive/Other/zh-Hans.lproj/Localizable.strings @@ -30,7 +30,7 @@ NSPhotoLibraryUsageDescription = "访问您的相册,允许可以把视频保存 "青少年模式" = "青少年模式"; //登录 -"欢迎来到秘地" = "欢迎来到秘地"; +"欢迎来到羽声语音" = "欢迎来到羽声语音"; "密码登录" = "密码登录"; "验证码登录" = "验证码登录"; "其他方式登录" = "其他方式登录"; @@ -56,7 +56,7 @@ NSPhotoLibraryUsageDescription = "访问您的相册,允许可以把视频保存 "资源加载错误" = "资源加载错误"; "请不要上传超过1M的头像" = "请不要上传超过1M的头像"; "文件上传失败,请重新尝试" = "文件上传失败,请重新尝试"; -"进入秘地" = "进入秘地"; +"进入羽声语音" = "进入羽声语音"; "希望大家怎么称呼你" = "希望大家怎么称呼你"; "选择您的性别" = "选择您的性别"; "注册成功,不可更改" = "注册成功,不可更改"; diff --git a/QXLive/Room(房间)/View/QXRoomChatListView.m b/QXLive/Room(房间)/View/QXRoomChatListView.m index 958a755..9a8b13b 100644 --- a/QXLive/Room(房间)/View/QXRoomChatListView.m +++ b/QXLive/Room(房间)/View/QXRoomChatListView.m @@ -168,7 +168,7 @@ NSInteger maxMessageCount = 20; -(void)insertNoitce{ QXRoomChatListModel *model = [QXRoomChatListModel new]; model.messageType = QXRoomChatMessageTypeSystem; - model.text = @"秘地严禁未成年人进行直播或打赏,官方将24小时在线巡查。我们提倡绿色直播,直播间严禁出现涉政、涉恐、涉黄、涉赌等违法违规内容,严禁宣传封建迷信、宗教极端思想、出现低俗色情、吸烟酗酒等内容,严禁违反社会主义核心价值观、践踏社会道德底线、诱导打赏、低俗 PK 、买卖金币等行为,请大家共同遵守、监督并及时举报。请勿相信各类刷钻、购买礼包、游戏币及电商贩卖等非官方广告信息,谨防网络诈骗。"; + model.text = @"羽声语音严禁未成年人进行直播或打赏,官方将24小时在线巡查。我们提倡绿色直播,直播间严禁出现涉政、涉恐、涉黄、涉赌等违法违规内容,严禁宣传封建迷信、宗教极端思想、出现低俗色情、吸烟酗酒等内容,严禁违反社会主义核心价值观、践踏社会道德底线、诱导打赏、低俗 PK 、买卖金币等行为,请大家共同遵守、监督并及时举报。请勿相信各类刷钻、购买礼包、游戏币及电商贩卖等非官方广告信息,谨防网络诈骗。"; [self.dataArray addObject:model]; [self.tableView reloadData]; [self scrollToBottom]; diff --git a/TUIKit/TUIChat/CommonModel/TUIChatConfig.m b/TUIKit/TUIChat/CommonModel/TUIChatConfig.m index 266c28c..73dae2b 100644 --- a/TUIKit/TUIChat/CommonModel/TUIChatConfig.m +++ b/TUIKit/TUIChat/CommonModel/TUIChatConfig.m @@ -17,7 +17,8 @@ - (id)init { self = [super init]; if (self) { - self.msgNeedReadReceipt = YES; + /// 启星修改为已读 + self.msgNeedReadReceipt = NO; self.enableVideoCall = YES; self.enableAudioCall = YES; self.enableWelcomeCustomMessage = YES;