From 3a55dec14d41bcfd9bbf31159226c7a528df0369 Mon Sep 17 00:00:00 2001 From: zhuxiao Date: Mon, 28 Jun 2021 16:07:07 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=AE=8C=E5=96=84V3=E6=9F=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeequan/jeepay/pay/channel/wxpay/kits/WxpayV3Util.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/kits/WxpayV3Util.java b/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/kits/WxpayV3Util.java index 59de4d9..a879cf0 100644 --- a/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/kits/WxpayV3Util.java +++ b/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/kits/WxpayV3Util.java @@ -77,7 +77,7 @@ public class WxpayV3Util { } public static JSONObject queryOrderV3(String url, WxPayConfig wxPayConfig) throws WxPayException { - String response = getV3(url, wxPayConfig); + String response = getV3(PAY_BASE_URL + url, wxPayConfig); return JSON.parseObject(response); } @@ -169,7 +169,7 @@ public class WxpayV3Util { throw wxPayException; } } catch (Exception e) { - log.error("\n【异常信息】:{}", url, e.getMessage()); + log.error("\n【异常信息】:{},e={}", url, e.getMessage()); throw (e instanceof WxPayException) ? (WxPayException) e : new WxPayException(e.getMessage(), e); } finally { httpGet.releaseConnection(); From 9ea14db90a8f068ef3712fa12d79a35cd262142b Mon Sep 17 00:00:00 2001 From: dingzhiwei Date: Mon, 28 Jun 2021 16:41:20 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=AE=8C=E5=96=84README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b47a46..abfaaf2 100644 --- a/README.md +++ b/README.md @@ -160,4 +160,4 @@ jeepay 微信扫码加入交流群,或添加微信号:`jiquanltd` 邀请进群 -![Jeepay微信交流群](http://jeequan.oss-cn-beijing.aliyuncs.com/jeepay/img/wx_qun_702.png "Jeepay微信交流群") +![Jeepay微信交流群](http://jeequan.oss-cn-beijing.aliyuncs.com/jeepay/img/wx_qun_705.png "Jeepay微信交流群") From 5ffcacb34e2662ac66afb2fee946158a95a20be2 Mon Sep 17 00:00:00 2001 From: terrfly Date: Mon, 28 Jun 2021 17:33:08 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=A7=A3=E5=86=B3bug:=E5=BE=AE=E4=BF=A1Oau?= =?UTF-8?q?th=E6=8E=88=E6=9D=83url=E5=9C=B0=E5=9D=80=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=20=20https://gitee.com/jeequan/jeepay/issues?= =?UTF-8?q?/I3Y60C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeepay/pay/channel/wxpay/WxpayChannelUserService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/WxpayChannelUserService.java b/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/WxpayChannelUserService.java index 66778f0..8c3ecff 100644 --- a/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/WxpayChannelUserService.java +++ b/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/WxpayChannelUserService.java @@ -65,7 +65,7 @@ public class WxpayChannelUserService implements IChannelUserService { oauth2Url = DEFAULT_OAUTH_URL; } - return String.format(oauth2Url + "?appid=%s&scope=snsapi_base&state=&redirect_uri=%s", appId, callbackUrlEncode); + return String.format(oauth2Url + "?appid=%s&scope=snsapi_base&state=&redirect_uri=%s&response_type=code#wechat_redirect", appId, callbackUrlEncode); } @Override