|
|
@@ -1018,7 +1018,8 @@ self.isrefreshing=false;
|
|
|
NSMutableDictionary* section_json = [[self.detail_data objectForKey:@"img_section"] mutableCopy];
|
|
|
NSString *qtyStr = [section_json valueForKey:@"Availability"];
|
|
|
|
|
|
- if (!qtyStr || !qtyStr.length || [qtyStr isEqualToString:@"In Production"] || [qtyStr isEqualToString:@"0"] || [qtyStr isEqualToString:@"Sold Out"] || [qtyStr isEqualToString:@"Out of Stock"]) {
|
|
|
+ // 2018-01-10 修改通过lowercase判断
|
|
|
+ if (!qtyStr || !qtyStr.length || [qtyStr.lowercaseString isEqualToString:@"in production"] || [qtyStr isEqualToString:@"0"] || [qtyStr.lowercaseString isEqualToString:@"sold out"] || [qtyStr.lowercaseString isEqualToString:@"out of stock"]) {
|
|
|
return YES;
|
|
|
}
|
|
|
return NO;
|