Commit a28dcb4c6df7849acae882cc8a8c4ffccce8a4b0

Authored by zhangxiaowen
1 parent 48b18c09

no message

CNLiveCollectionModule/Classes/Controller/CNLiveCollectionController.h
@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 // 7 //
8 8
9 /** 9 /**
10 - * 我的二维码 10 + * 我的收藏
11 */ 11 */
12 12
13 #import <UIKit/UIKit.h> 13 #import <UIKit/UIKit.h>
CNLiveCollectionModule/Classes/Controller/CNLiveCollectionController.m
@@ -53,11 +53,19 @@ static const CGFloat timeValue = 1.5; @@ -53,11 +53,19 @@ static const CGFloat timeValue = 1.5;
53 if (error) { 53 if (error) {
54 [strongSelf.data removeAllObjects]; 54 [strongSelf.data removeAllObjects];
55 [strongSelf.tableView reloadData]; 55 [strongSelf.tableView reloadData];
56 - [strongSelf.tableView showEmptyViewWithType:CNLiveCustomTipsTypeLoadFail noData:strongSelf.data.count == 0 block:^{  
57 - [strongSelf.tableView.mj_header beginRefreshing];  
58 - }]; 56 + if (error.code == -1001||error.code == -1003||error.code == -1009) {
  57 + [strongSelf.tableView showEmptyViewWithType:CNLiveCustomTipsTypeNoNet noData:strongSelf.data.count == 0 block:^{
  58 + [strongSelf.tableView.mj_header beginRefreshing];
  59 +
  60 + }];
  61 + }else{
  62 + [strongSelf.tableView showEmptyViewWithType:CNLiveCustomTipsTypeLoadFail noData:strongSelf.data.count == 0 block:^{
  63 + [strongSelf.tableView.mj_header beginRefreshing];
  64 +
  65 + }];
  66 + }
59 strongSelf.tableView.emptyView.top = 0; 67 strongSelf.tableView.emptyView.top = 0;
60 - strongSelf.tableView.mj_footer.hidden = strongSelf.data.count == 0; 68 + strongSelf.tableView.mj_footer.hidden = self.data.count == 0;
61 return; 69 return;
62 } 70 }
63 71