更新
This commit is contained in:
parent
d9fa16c70a
commit
000877c0fa
@ -139,8 +139,10 @@ public class AmapServiceImpl implements AmapService {
|
||||
private List<BusLinesResponse> dealBus(cn.hutool.json.JSONArray bus){
|
||||
//此路段公交导航信息
|
||||
List<BusLinesResponse> res =new ArrayList<>();
|
||||
for (Object o : bus) {
|
||||
JSONObject jsonObject = JSONUtil.parseObj(o);
|
||||
if (!bus.isEmpty()){
|
||||
// for (Object o : bus) {
|
||||
JSONObject jsonObject = JSONUtil.parseObj(bus.get(0));
|
||||
// JSONObject jsonObject = JSONUtil.parseObj(o);
|
||||
BusLinesResponse busLinesResponse = new BusLinesResponse();
|
||||
busLinesResponse.setName(jsonObject.getStr("name"));
|
||||
busLinesResponse.setId(jsonObject.getStr("id"));
|
||||
|
Loading…
Reference in New Issue
Block a user