Commit 82ff9f0da8a16bf7e7579b1a711d30ffd4f0e16c
1 parent
a8dee654
no message
Showing
2 changed files
with
20 additions
and
8 deletions
CNLiveBMineModule/Classes/Controller/CNLiveMineController.m
| @@ -39,14 +39,14 @@ static const CGFloat timeValue = 1.5; | @@ -39,14 +39,14 @@ static const CGFloat timeValue = 1.5; | ||
| 39 | #pragma mark - 加载数据 | 39 | #pragma mark - 加载数据 |
| 40 | - (void)loadData { | 40 | - (void)loadData { |
| 41 | NSArray *data = @[ | 41 | NSArray *data = @[ |
| 42 | - @{ | ||
| 43 | - @"name":@"直播中心", | ||
| 44 | - @"image":@"mine_zbzx", | ||
| 45 | - }, | ||
| 46 | - @{ | ||
| 47 | - @"name":@"钱包", | ||
| 48 | - @"image":@"mine_qb", | ||
| 49 | - }, | 42 | +// @{ |
| 43 | +// @"name":@"直播中心", | ||
| 44 | +// @"image":@"mine_zbzx", | ||
| 45 | +// }, | ||
| 46 | +// @{ | ||
| 47 | +// @"name":@"钱包", | ||
| 48 | +// @"image":@"mine_qb", | ||
| 49 | +// }, | ||
| 50 | @{ | 50 | @{ |
| 51 | @"name":@"设置", | 51 | @"name":@"设置", |
| 52 | @"image":@"mine_sz", | 52 | @"image":@"mine_sz", |
CNLiveBMineModule/Classes/Setting/Controller/CNLiveSettingController.m
| @@ -10,6 +10,8 @@ | @@ -10,6 +10,8 @@ | ||
| 10 | #import "MJExtension.h" | 10 | #import "MJExtension.h" |
| 11 | #import <SDWebImage/SDWebImage.h> | 11 | #import <SDWebImage/SDWebImage.h> |
| 12 | #import "QMUIKit.h" | 12 | #import "QMUIKit.h" |
| 13 | +#import "TIMAdapter.h" | ||
| 14 | +//#import "CommonLibrary.h" | ||
| 13 | 15 | ||
| 14 | #import "CNLiveUserAgreementManager.h" | 16 | #import "CNLiveUserAgreementManager.h" |
| 15 | #import "CNUserInfoManager.h" | 17 | #import "CNUserInfoManager.h" |
| @@ -312,6 +314,11 @@ static const NSInteger timeValue = 1.5; | @@ -312,6 +314,11 @@ static const NSInteger timeValue = 1.5; | ||
| 312 | // 清除本地缓存 | 314 | // 清除本地缓存 |
| 313 | - (void)cleanLocalCache{ | 315 | - (void)cleanLocalCache{ |
| 314 | [CNUserInfoManager loginOut]; | 316 | [CNUserInfoManager loginOut]; |
| 317 | + [[IMAPlatform sharedInstance] logout:^{ | ||
| 318 | + | ||
| 319 | + } fail:^(int code, NSString *msg) { | ||
| 320 | + | ||
| 321 | + }]; | ||
| 315 | [[SDImageCache sharedImageCache] clearMemory]; | 322 | [[SDImageCache sharedImageCache] clearMemory]; |
| 316 | [[SDImageCache sharedImageCache] clearDiskOnCompletion:^{ | 323 | [[SDImageCache sharedImageCache] clearDiskOnCompletion:^{ |
| 317 | [QMUITips showSucceed:@"清除成功" inView:self.view hideAfterDelay:timeValue]; | 324 | [QMUITips showSucceed:@"清除成功" inView:self.view hideAfterDelay:timeValue]; |
| @@ -324,6 +331,11 @@ static const NSInteger timeValue = 1.5; | @@ -324,6 +331,11 @@ static const NSInteger timeValue = 1.5; | ||
| 324 | // 清除本地缓存 | 331 | // 清除本地缓存 |
| 325 | + (void)cleanLocalCache{ | 332 | + (void)cleanLocalCache{ |
| 326 | [CNUserInfoManager loginOut]; | 333 | [CNUserInfoManager loginOut]; |
| 334 | + [[IMAPlatform sharedInstance] logout:^{ | ||
| 335 | + | ||
| 336 | + } fail:^(int code, NSString *msg) { | ||
| 337 | + | ||
| 338 | + }]; | ||
| 327 | [[SDImageCache sharedImageCache] clearMemory]; | 339 | [[SDImageCache sharedImageCache] clearMemory]; |
| 328 | [[SDImageCache sharedImageCache] clearDiskOnCompletion:^{ | 340 | [[SDImageCache sharedImageCache] clearDiskOnCompletion:^{ |
| 329 | 341 |