Commit 262da103683abb7f68bb46b450b653ed4e037e47
1 parent
99898345
no message
Showing
3 changed files
with
3 additions
and
7 deletions
CNLiveIntegralModule/Classes/Controller/CNLiveIntegralDetailsController.m
| @@ -47,14 +47,11 @@ | @@ -47,14 +47,11 @@ | ||
| 47 | @"sid":CNUserShareModel.uid,@"appId":AppId}; | 47 | @"sid":CNUserShareModel.uid,@"appId":AppId}; |
| 48 | [CNLiveNetworking setAllowRequestDefaultArgument:YES]; | 48 | [CNLiveNetworking setAllowRequestDefaultArgument:YES]; |
| 49 | [CNLiveNetworking setupShowDataResult:NO]; | 49 | [CNLiveNetworking setupShowDataResult:NO]; |
| 50 | - [QMUITips showLoadingInView:[UIApplication sharedApplication].keyWindow]; | ||
| 51 | __weak typeof(self) weakSelf = self; | 50 | __weak typeof(self) weakSelf = self; |
| 52 | [CNLiveNetworking requestNetworkWithMethod:CNLiveRequestMethodGET URLString:CNIntegralDetailsUrl Param:params CacheType:CNLiveNetworkCacheTypeNetworkOnly CompletionBlock:^(NSURLSessionTask *requestTask, id responseObject, NSError *error) { | 51 | [CNLiveNetworking requestNetworkWithMethod:CNLiveRequestMethodGET URLString:CNIntegralDetailsUrl Param:params CacheType:CNLiveNetworkCacheTypeNetworkOnly CompletionBlock:^(NSURLSessionTask *requestTask, id responseObject, NSError *error) { |
| 53 | 52 | ||
| 54 | __strong typeof(weakSelf) strongSelf = weakSelf; | 53 | __strong typeof(weakSelf) strongSelf = weakSelf; |
| 55 | if(!strongSelf) return ; | 54 | if(!strongSelf) return ; |
| 56 | - [QMUITips hideAllTipsInView:[UIApplication sharedApplication].keyWindow]; | ||
| 57 | - | ||
| 58 | [strongSelf.tableView.mj_header endRefreshing]; | 55 | [strongSelf.tableView.mj_header endRefreshing]; |
| 59 | [strongSelf.tableView.mj_footer endRefreshing]; | 56 | [strongSelf.tableView.mj_footer endRefreshing]; |
| 60 | strongSelf.isRefreshing = NO; | 57 | strongSelf.isRefreshing = NO; |
CNLiveIntegralModule/Classes/Controller/CNLiveTaskListController.m
| @@ -121,13 +121,10 @@ | @@ -121,13 +121,10 @@ | ||
| 121 | NSDictionary *params = @{@"sid":CNUserShareModel.uid,@"appId":AppId}; | 121 | NSDictionary *params = @{@"sid":CNUserShareModel.uid,@"appId":AppId}; |
| 122 | [CNLiveNetworking setAllowRequestDefaultArgument:YES]; | 122 | [CNLiveNetworking setAllowRequestDefaultArgument:YES]; |
| 123 | [CNLiveNetworking setupShowDataResult:NO]; | 123 | [CNLiveNetworking setupShowDataResult:NO]; |
| 124 | - [QMUITips showLoadingInView:self.view]; | ||
| 125 | __weak typeof(self) weakSelf = self; | 124 | __weak typeof(self) weakSelf = self; |
| 126 | [CNLiveNetworking requestNetworkWithMethod:CNLiveRequestMethodGET URLString:CNIntegralGetTasksUrl Param:params CacheType:CNLiveNetworkCacheTypeNetworkOnly CompletionBlock:^(NSURLSessionTask *requestTask, id responseObject, NSError *error) { | 125 | [CNLiveNetworking requestNetworkWithMethod:CNLiveRequestMethodGET URLString:CNIntegralGetTasksUrl Param:params CacheType:CNLiveNetworkCacheTypeNetworkOnly CompletionBlock:^(NSURLSessionTask *requestTask, id responseObject, NSError *error) { |
| 127 | __strong typeof(weakSelf) strongSelf = weakSelf; | 126 | __strong typeof(weakSelf) strongSelf = weakSelf; |
| 128 | if(!strongSelf) return ; | 127 | if(!strongSelf) return ; |
| 129 | - [QMUITips hideAllTipsInView:strongSelf.view]; | ||
| 130 | - | ||
| 131 | if (error) { | 128 | if (error) { |
| 132 | if (error.code == -1001||error.code == -1003||error.code == -1009) { | 129 | if (error.code == -1001||error.code == -1003||error.code == -1009) { |
| 133 | [strongSelf.tableView showEmptyViewWithType:CNLiveCustomTipsTypeNoNet noData:strongSelf.data.count == 0 block:^{ | 130 | [strongSelf.tableView showEmptyViewWithType:CNLiveCustomTipsTypeNoNet noData:strongSelf.data.count == 0 block:^{ |
Example/CNLiveIntegralModule/CNLIVEViewController.m
| @@ -23,8 +23,10 @@ | @@ -23,8 +23,10 @@ | ||
| 23 | [super viewDidLoad]; | 23 | [super viewDidLoad]; |
| 24 | self.view.backgroundColor = [UIColor whiteColor]; | 24 | self.view.backgroundColor = [UIColor whiteColor]; |
| 25 | // Do any additional setup after loading the view, typically from a nib. | 25 | // Do any additional setup after loading the view, typically from a nib. |
| 26 | - NSArray *userIds = @[@"10514405"]; | 26 | +// NSArray *userIds = @[@"10514405",@"10528152"]; |
| 27 | 27 | ||
| 28 | + NSArray *userIds = @[@"10528152"]; | ||
| 29 | + | ||
| 28 | for(int i = 0; i < userIds.count; i++ ){ | 30 | for(int i = 0; i < userIds.count; i++ ){ |
| 29 | [self request:userIds[i]]; | 31 | [self request:userIds[i]]; |
| 30 | } | 32 | } |