Browse Source

fix: 京东面单数据接口调整;

hanchaolong 2 weeks ago
parent
commit
0ea72e4fab

+ 2 - 0
jd-logistics-modules/jd-logistics-system/src/main/java/com/ruoyi/logistics/service/impl/JDLogisticsService.java

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