From faf495cf97813df9ba4cfbde9d844906ee05c973 Mon Sep 17 00:00:00 2001 From: liyuhua <15626451870@163.com> Date: Fri, 18 Aug 2023 10:43:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Eh5=E8=B7=B3=E8=BD=AC=E5=88=B0?= =?UTF-8?q?=E8=81=8A=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YuMi/Modules/YMNewHome/View/XPNewHomeViewController.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/YuMi/Modules/YMNewHome/View/XPNewHomeViewController.m b/YuMi/Modules/YMNewHome/View/XPNewHomeViewController.m index 80c6debf..d50d443f 100644 --- a/YuMi/Modules/YMNewHome/View/XPNewHomeViewController.m +++ b/YuMi/Modules/YMNewHome/View/XPNewHomeViewController.m @@ -92,6 +92,9 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification; [self.view addSubview:self.titleView]; [self.view addSubview:self.contentView]; [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(openRoomNotification:) name:kOpenRoomNotification object:nil]; + if([[AccountInfoStorage instance] getUid].length == 0){ + return; + } if([ClientConfig shareConfig].roomId != nil){ [self opRoom:[ClientConfig shareConfig].roomId]; [ClientConfig shareConfig].roomId = nil; @@ -104,6 +107,9 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification; } } -(void)openRoomNotification:(NSNotification *)notification{ + if([[AccountInfoStorage instance] getUid].length == 0){ + return; + } NSString *uid = notification.userInfo[@"uid"]; NSString *type = notification.userInfo[@"type"]; if([type isEqualToString:@"kOpenChat"]){