hello vor 1 Monat
Ursprung
Commit
9faec38111
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  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;
     }