|
@@ -39,11 +39,6 @@ public class KdNiaoExpressClient implements ExpressClient {
|
|
|
|
|
|
private static final String REAL_TIME_QUERY_URL = "https://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx";
|
|
|
|
|
|
- /**
|
|
|
- * 快递鸟即时查询免费版 RequestType
|
|
|
- */
|
|
|
- private static final String REAL_TIME_FREE_REQ_TYPE = "1002";
|
|
|
-
|
|
|
private final RestTemplate restTemplate;
|
|
|
private final TradeExpressProperties.KdNiaoConfig config;
|
|
|
|
|
@@ -67,7 +62,7 @@ public class KdNiaoExpressClient implements ExpressClient {
|
|
|
&& StrUtil.length(reqDTO.getPhone()) >= 4) {
|
|
|
requestDTO.setCustomerName(StrUtil.subSufByLength(reqDTO.getPhone(), 4));
|
|
|
}
|
|
|
- KdNiaoExpressQueryRespDTO respDTO = httpRequest(REAL_TIME_QUERY_URL, REAL_TIME_FREE_REQ_TYPE,
|
|
|
+ KdNiaoExpressQueryRespDTO respDTO = httpRequest(REAL_TIME_QUERY_URL, config.getRequestType(),
|
|
|
requestDTO, KdNiaoExpressQueryRespDTO.class);
|
|
|
|
|
|
// 处理结果
|