|
|
|
@ -24,11 +24,11 @@ public class SzCarUtils { |
|
|
|
if(shopCar!=null) { |
|
|
|
JSONObject shopCarJson = JSONObject.parseObject(shopCar.toString()); |
|
|
|
JSONArray jsonArray = shopCarJson.getJSONArray("data"); |
|
|
|
for(int x=0;x<jsonArray.size();x++){ |
|
|
|
carItem.add(jsonArray.getJSONObject(x)); |
|
|
|
if(jsonArray!=null) { |
|
|
|
for (int x = 0; x < jsonArray.size(); x++) { |
|
|
|
carItem.add(jsonArray.getJSONObject(x)); |
|
|
|
} |
|
|
|
} |
|
|
|
// 在jsonArray中集训增加
|
|
|
|
//jsonArray.add(new JSONObject(ugmap));
|
|
|
|
}else{ |
|
|
|
carItem.add(new JSONObject(ugmap)); |
|
|
|
} |
|
|
|
|