Pārlūkot izejas kodu

歌尔ASN测试

zxl 2 nedēļas atpakaļ
vecāks
revīzija
c9027d8d82

+ 6 - 1
src/main/java/com/uas/eis/service/Impl/GEServiceImpl.java

@@ -167,7 +167,12 @@ public class GEServiceImpl implements GEService {
         //接口返回
         HttpResultResponse resultResponse = null;
         try{
-            resultResponse =  HuToolUtils.post(asnUrl,dto);
+            //resultResponse =  HuToolUtils.post(asnUrl,dto);
+            //头部请求参数
+            Map<String,String> headerMap = null;
+            headerMap.put("user","WD");
+            headerMap.put("password","WD@test+1");
+            resultResponse =  HuToolUtils.post(asnUrl,dto,headerMap);
             logger.info("推送发货信息到歌尔,接口返回结果:{}",resultResponse);
         }catch (Exception e){
             logger.error("推送发货信息到歌尔,调用接口异常:{}",e);