소스 검색

fix:退出

hello 1 개월 전
부모
커밋
9faec38111
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      WQPlayBallLiveQiu/WQPlayBallLiveQiu/Classes/LiveModule.m

+ 4 - 2
WQPlayBallLiveQiu/WQPlayBallLiveQiu/Classes/LiveModule.m

@@ -14,6 +14,7 @@
 #import <PBSDK/PBUser.h>
 #import <PBSDK/TokenManager.h>
 #import <PBSDK/PBUserHomePageViewController.h>
+#import <PBSDK/PBPublic.h>
 
 @implementation LiveModule
 - (instancetype)init{
@@ -104,8 +105,9 @@ UNI_EXPORT_METHOD(@selector(setupConfigCallback:))
         PBSDK.shared.refreshToken = nil;
         
         NSLog( @"UINIapp 退出登录");
-        [[NSUserDefaults standardUserDefaults] removeObjectForKey:@"token"];
-        [[NSUserDefaults standardUserDefaults] synchronize];
+        [PBPublic loginOut:^{
+            
+        }];
         return;
     }