From 1f85e33c3427de5203e723aa0e677cc02842478c Mon Sep 17 00:00:00 2001 From: xioayue Date: Sun, 3 Jul 2022 16:08:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8D=95=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/chjyj/szwh/utils/RequestUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/chjyj/szwh/utils/RequestUtils.java b/src/main/java/cn/chjyj/szwh/utils/RequestUtils.java index dab0dd8..df527be 100644 --- a/src/main/java/cn/chjyj/szwh/utils/RequestUtils.java +++ b/src/main/java/cn/chjyj/szwh/utils/RequestUtils.java @@ -39,7 +39,7 @@ public class RequestUtils { httpcon.setDoInput(true); // 存在token的时候 if(StringUtils.isNotEmpty(token)){ - httpcon.setRequestProperty("api_token",token); + httpcon.addRequestProperty("api_token",token); } httpcon.connect(); //获取返回的字符