Commit 59106dee by houweibin

small fix

parent 2136c9f7
...@@ -315,11 +315,13 @@ static NSString *identify = @"KWMSearchBrandsCell"; ...@@ -315,11 +315,13 @@ static NSString *identify = @"KWMSearchBrandsCell";
// if(self.dataArray){ //如果已经从缓存拿到数据了。 // if(self.dataArray){ //如果已经从缓存拿到数据了。
// return; // return;
// } // }
if(result.brands){
NSArray *indexArray= [[result.brands rx_filterWithBlock:^BOOL(id each) { NSArray *indexArray= [[result.brands rx_filterWithBlock:^BOOL(id each) {
return each && each != [NSNull null]; return each && each != [NSNull null];
}] arrayWithPinYinFirstLetterFormat]; }] arrayWithPinYinFirstLetterFormat];
_dataArray =[NSMutableArray arrayWithArray:indexArray]; _dataArray =[NSMutableArray arrayWithArray:indexArray];
[weakSelf.tbvSearchBrand reloadData]; [weakSelf.tbvSearchBrand reloadData];
}
}; };
void(^cacheCallback)(KWMBrandsResult *) = ^(KWMBrandsResult *result){ void(^cacheCallback)(KWMBrandsResult *) = ^(KWMBrandsResult *result){
// if([weakSelf hasCemaroseError:result]){ // if([weakSelf hasCemaroseError:result]){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment