Commit f39617f048ee83c6e00342e674f32110d8ef24c4
1 parent
749011eb
no message
Showing
1 changed file
with
6 additions
and
12 deletions
CNLiveBMineModule/Classes/Setting/Controller/CNLiveSettingController.m
| ... | ... | @@ -285,6 +285,12 @@ static const NSInteger timeValue = 1.5; |
| 285 | 285 | QMUIAlertAction *sure = [QMUIAlertAction actionWithTitle:@"退出登录" style:QMUIAlertActionStyleDefault handler:^(__kindof QMUIAlertController *aAlertController, QMUIAlertAction *action) { |
| 286 | 286 | [UIApplication sharedApplication].delegate.window.rootViewController = nil; |
| 287 | 287 | [self cleanLocalCache]; |
| 288 | + [CNUserInfoManager loginOut]; | |
| 289 | + [[IMAPlatform sharedInstance] logout:^{ | |
| 290 | + | |
| 291 | + } fail:^(int code, NSString *msg) { | |
| 292 | + | |
| 293 | + }]; | |
| 288 | 294 | id<CNLiveBLoginServiceProtocol> login = [[BeeHive shareInstance] createService:@protocol(CNLiveBLoginServiceProtocol)]; |
| 289 | 295 | UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:[login getLoginViewController]]; |
| 290 | 296 | [UIApplication sharedApplication].delegate.window.rootViewController = nav; |
| ... | ... | @@ -313,12 +319,6 @@ static const NSInteger timeValue = 1.5; |
| 313 | 319 | #pragma mark - 私有方法 |
| 314 | 320 | // 清除本地缓存 |
| 315 | 321 | - (void)cleanLocalCache{ |
| 316 | - [CNUserInfoManager loginOut]; | |
| 317 | - [[IMAPlatform sharedInstance] logout:^{ | |
| 318 | - | |
| 319 | - } fail:^(int code, NSString *msg) { | |
| 320 | - | |
| 321 | - }]; | |
| 322 | 322 | [[SDImageCache sharedImageCache] clearMemory]; |
| 323 | 323 | [[SDImageCache sharedImageCache] clearDiskOnCompletion:^{ |
| 324 | 324 | [QMUITips showSucceed:@"清除成功" inView:self.view hideAfterDelay:timeValue]; |
| ... | ... | @@ -330,12 +330,6 @@ static const NSInteger timeValue = 1.5; |
| 330 | 330 | #pragma mark - 公共方法 |
| 331 | 331 | // 清除本地缓存 |
| 332 | 332 | + (void)cleanLocalCache{ |
| 333 | - [CNUserInfoManager loginOut]; | |
| 334 | - [[IMAPlatform sharedInstance] logout:^{ | |
| 335 | - | |
| 336 | - } fail:^(int code, NSString *msg) { | |
| 337 | - | |
| 338 | - }]; | |
| 339 | 333 | [[SDImageCache sharedImageCache] clearMemory]; |
| 340 | 334 | [[SDImageCache sharedImageCache] clearDiskOnCompletion:^{ |
| 341 | 335 | ... | ... |