|
@@ -768,10 +768,12 @@ public class JDLogisticsService implements LogisticsService {
|
|
|
CloudPrintRenderLopResponse response = client.execute(request);
|
|
CloudPrintRenderLopResponse response = client.execute(request);
|
|
|
log.info("京东开放平台根据运单信息查询面单pdf接口,响应结果:{}", JSON.toJSONString(response));
|
|
log.info("京东开放平台根据运单信息查询面单pdf接口,响应结果:{}", JSON.toJSONString(response));
|
|
|
|
|
|
|
|
|
|
+ result.put("url", "");
|
|
|
if (response.getCode().equals("0")) {
|
|
if (response.getCode().equals("0")) {
|
|
|
if (response.getPrintResultDTO().getCode() == 1000) {
|
|
if (response.getPrintResultDTO().getCode() == 1000) {
|
|
|
result.put("success", true);
|
|
result.put("success", true);
|
|
|
result.put("msg", response.getPrintResultDTO().getResult().get(0).getUrl());
|
|
result.put("msg", response.getPrintResultDTO().getResult().get(0).getUrl());
|
|
|
|
|
+ result.put("url", response.getPrintResultDTO().getResult().get(0).getUrl());
|
|
|
} else {
|
|
} else {
|
|
|
result.put("success", false);
|
|
result.put("success", false);
|
|
|
result.put("msg", "京东开放平台根据运单信息查询面单pdf接口!失败原因:" + response.getPrintResultDTO().getMsg());
|
|
result.put("msg", "京东开放平台根据运单信息查询面单pdf接口!失败原因:" + response.getPrintResultDTO().getMsg());
|