Commit 8bf2169c authored by 勾芒's avatar 勾芒

修复扫描条形码crash

parent dace5719
......@@ -308,6 +308,10 @@
[self RemoveMBProgressHUDLoding];
if ([returnValue[@"code"] isEqualToNumber:@0]) {
if ([returnValue[@"data"] isKindOfClass:[NSNull class]]) {
[self ErrorMBProgressView:@"暂无商品信息"];
return;
}
TOGoodsEntity *goods = [[TOGoodsEntity alloc]initWithDictionary:returnValue[@"data"] error:nil];
[self.datasArray removeAllObjects];
[self.datasArray addObject:goods];
......
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