Commit f39617f048ee83c6e00342e674f32110d8ef24c4

Authored by iOS-Xiaowen
1 parent 749011eb

no message

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