From 6378a2e509cbb7c2704dc7ce5c5252a274bbb0e6 Mon Sep 17 00:00:00 2001 From: liyuhua <15626451870@163.com> Date: Thu, 14 Mar 2024 14:18:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9F=B3=E8=90=8C=E4=BC=81=E4=B8=9A=E5=8C=852.?= =?UTF-8?q?1.1=E5=8F=91=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xcshareddata/xcschemes/xplan-ios.xcscheme | 2 +- xplan-ios/Main/Mine/View/XPMineViewController.m | 14 +++++--------- .../SubViews/XPRoomInsideRecommendCell.m | 1 + xplan-ios/Main/Room/View/StageView/StageView.m | 2 +- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/xplan-ios.xcodeproj/xcshareddata/xcschemes/xplan-ios.xcscheme b/xplan-ios.xcodeproj/xcshareddata/xcschemes/xplan-ios.xcscheme index 670f098f..51c35fc3 100644 --- a/xplan-ios.xcodeproj/xcshareddata/xcschemes/xplan-ios.xcscheme +++ b/xplan-ios.xcodeproj/xcshareddata/xcschemes/xplan-ios.xcscheme @@ -31,7 +31,7 @@ #import #import +#import ///Tool #import "TTPopup.h" #import "XPMacro.h" @@ -66,6 +67,7 @@ #import "XPMineCollectRoomListViewController.h" #import "XPNewUserRechargeViewController.h" #import "XPMineGameOrderVC.h" +#import "SessionViewController.h" @interface XPMineViewController () @@ -662,15 +664,9 @@ } break; case XPMineItemType_Customer_Center: { - [QYSDK sharedSDK].customUIConfig.customerHeadImageUrl = self.userInfo.avatar; - QYSource *source = [[QYSource alloc] init]; - source.title = @"音萌客服"; - source.urlString = @"https://gzhfwlkjyxgs.qiyukf.com/"; - [[IQKeyboardManager sharedManager].disabledDistanceHandlingClasses addObject:[QYSessionViewController class]]; - QYSessionViewController *sessionViewController = [[QYSDK sharedSDK] sessionViewController]; - sessionViewController.sessionTitle = @"音萌客服"; - sessionViewController.source = source; - [self.navigationController pushViewController:sessionViewController animated:YES]; + NIMSession *session = [NIMSession session:@"200014" type:NIMSessionTypeP2P]; + SessionViewController *sessionVC = [[SessionViewController alloc] initWithSession:session]; + [self.navigationController pushViewController:sessionVC animated:YES]; } break; diff --git a/xplan-ios/Main/Room/View/RoomRecommend/SubViews/XPRoomInsideRecommendCell.m b/xplan-ios/Main/Room/View/RoomRecommend/SubViews/XPRoomInsideRecommendCell.m index 47128dde..a2b5f351 100644 --- a/xplan-ios/Main/Room/View/RoomRecommend/SubViews/XPRoomInsideRecommendCell.m +++ b/xplan-ios/Main/Room/View/RoomRecommend/SubViews/XPRoomInsideRecommendCell.m @@ -78,6 +78,7 @@ make.right.mas_equalTo(0); make.height.mas_equalTo(12); }]; + } #pragma mark - Getters And Setters - (void)setModel:(XPRoomRecommendModel *)model { diff --git a/xplan-ios/Main/Room/View/StageView/StageView.m b/xplan-ios/Main/Room/View/StageView/StageView.m index a55d689e..e51ead0c 100644 --- a/xplan-ios/Main/Room/View/StageView/StageView.m +++ b/xplan-ios/Main/Room/View/StageView/StageView.m @@ -255,7 +255,7 @@ owner.uid = roomInfo.uid; owner.gender = roomInfo.gender; UIView *ownerView = [self findMicroViewByIndex:0]; - [ownerView configUser:owner]; + [ownerView configUser:owner ]; } if (self.isMiniEnter || !isHandleRTC) {