|
|
@@ -1,6 +1,7 @@ |
|
|
|
package com.tuoheng.admin.tzhl.service.airportline; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.tuoheng.admin.tzhl.constant.TZHLConstant; |
|
|
|
import com.tuoheng.admin.tzhl.request.TZHLGetAirportLineListRequest; |
|
|
@@ -17,6 +18,8 @@ import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.web.client.RestClientException; |
|
|
|
import org.springframework.web.client.RestTemplate; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Author ChengWang |
|
|
|
* @Date 2023/8/9 |
|
|
@@ -66,12 +69,11 @@ public class TZHLGetAirportLineListService { |
|
|
|
return JsonResult.error(response.getBody().getMsg()); |
|
|
|
} |
|
|
|
|
|
|
|
TZHLAirportLineResponse tzhlAirportLineResponse = JSONObject.parseObject(response.getBody().getData().toString(), |
|
|
|
List<TZHLAirportLineResponse> tzhlAirportLineResponses = JSON.parseArray(JSONObject.toJSONString(response.getBody().getData()), |
|
|
|
TZHLAirportLineResponse.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return JsonResult.success(tzhlAirportLineResponse); |
|
|
|
return JsonResult.success(tzhlAirportLineResponses); |
|
|
|
} |
|
|
|
|
|
|
|
private JsonResult check(String token) { |