From 2daf89e0c68442594ddde3500eb40a4d40541bc6 Mon Sep 17 00:00:00 2001 From: Live <1005297262@qq.com> Date: Wed, 10 Jun 2020 18:30:17 +0800 Subject: [PATCH] =?UTF-8?q?HttpUtils.sendPost()=E6=96=B9=E6=B3=95=EF=BC=8C?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=97=A0=E9=9C=80=E6=8B=BC=E6=8E=A5=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=88=B0url,=E5=90=A6=E5=88=99=E4=BC=9A=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E5=8F=8C=E4=BB=BD=E5=8F=82=E6=95=B0=20=E8=AF=B7?= =?UTF-8?q?=E6=B1=82url=E6=88=96form=E5=8F=82=E6=95=B0=20=E4=BC=9A?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E5=8F=8C=E4=BB=BD=E5=8F=82=E6=95=B0,?= =?UTF-8?q?=E5=B9=B6=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=20{"token":["xxxx?= =?UTF-8?q?xxx","xxxxxxx"],"payType":["weixin","weixin"],"amount":["100","?= =?UTF-8?q?100"],"orderId":["123","123"]}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi/src/main/java/com/ruoyi/common/utils/http/HttpUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi/src/main/java/com/ruoyi/common/utils/http/HttpUtils.java b/ruoyi/src/main/java/com/ruoyi/common/utils/http/HttpUtils.java index 2078240..5e92cde 100644 --- a/ruoyi/src/main/java/com/ruoyi/common/utils/http/HttpUtils.java +++ b/ruoyi/src/main/java/com/ruoyi/common/utils/http/HttpUtils.java @@ -118,7 +118,7 @@ public class HttpUtils StringBuilder result = new StringBuilder(); try { - String urlNameString = url + "?" + param; + String urlNameString = url; log.info("sendPost - {}", urlNameString); URL realUrl = new URL(urlNameString); URLConnection conn = realUrl.openConnection();