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 779d106d..3b9bc07c 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 @@ -283,7 +283,7 @@ public static String getPayInfo(String response, WxPayConfig wxPayConfig) throw } } - public static String processIsvPayer(String subAppId, String openId) { + public static JSONObject processIsvPayer(String subAppId, String openId) { JSONObject payer = new JSONObject(); // 子商户subAppId不为空 if (StringUtils.isNotBlank(subAppId)) { @@ -291,7 +291,7 @@ public static String processIsvPayer(String subAppId, String openId) { }else { payer.put("sp_openid", openId); // 用户在服务商appid下的唯一标识 } - return payer.toJSONString(); + return payer; } }