Commit 262da103683abb7f68bb46b450b653ed4e037e47

Authored by zhangxiaowen
1 parent 99898345

no message

CNLiveIntegralModule/Classes/Controller/CNLiveIntegralDetailsController.m
... ... @@ -47,14 +47,11 @@
47 47 @"sid":CNUserShareModel.uid,@"appId":AppId};
48 48 [CNLiveNetworking setAllowRequestDefaultArgument:YES];
49 49 [CNLiveNetworking setupShowDataResult:NO];
50   - [QMUITips showLoadingInView:[UIApplication sharedApplication].keyWindow];
51 50 __weak typeof(self) weakSelf = self;
52 51 [CNLiveNetworking requestNetworkWithMethod:CNLiveRequestMethodGET URLString:CNIntegralDetailsUrl Param:params CacheType:CNLiveNetworkCacheTypeNetworkOnly CompletionBlock:^(NSURLSessionTask *requestTask, id responseObject, NSError *error) {
53 52  
54 53 __strong typeof(weakSelf) strongSelf = weakSelf;
55 54 if(!strongSelf) return ;
56   - [QMUITips hideAllTipsInView:[UIApplication sharedApplication].keyWindow];
57   -
58 55 [strongSelf.tableView.mj_header endRefreshing];
59 56 [strongSelf.tableView.mj_footer endRefreshing];
60 57 strongSelf.isRefreshing = NO;
... ...
CNLiveIntegralModule/Classes/Controller/CNLiveTaskListController.m
... ... @@ -121,13 +121,10 @@
121 121 NSDictionary *params = @{@"sid":CNUserShareModel.uid,@"appId":AppId};
122 122 [CNLiveNetworking setAllowRequestDefaultArgument:YES];
123 123 [CNLiveNetworking setupShowDataResult:NO];
124   - [QMUITips showLoadingInView:self.view];
125 124 __weak typeof(self) weakSelf = self;
126 125 [CNLiveNetworking requestNetworkWithMethod:CNLiveRequestMethodGET URLString:CNIntegralGetTasksUrl Param:params CacheType:CNLiveNetworkCacheTypeNetworkOnly CompletionBlock:^(NSURLSessionTask *requestTask, id responseObject, NSError *error) {
127 126 __strong typeof(weakSelf) strongSelf = weakSelf;
128 127 if(!strongSelf) return ;
129   - [QMUITips hideAllTipsInView:strongSelf.view];
130   -
131 128 if (error) {
132 129 if (error.code == -1001||error.code == -1003||error.code == -1009) {
133 130 [strongSelf.tableView showEmptyViewWithType:CNLiveCustomTipsTypeNoNet noData:strongSelf.data.count == 0 block:^{
... ...
Example/CNLiveIntegralModule/CNLIVEViewController.m
... ... @@ -23,8 +23,10 @@
23 23 [super viewDidLoad];
24 24 self.view.backgroundColor = [UIColor whiteColor];
25 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 30 for(int i = 0; i < userIds.count; i++ ){
29 31 [self request:userIds[i]];
30 32 }
... ...