mirror of
https://gitee.com/dromara/dax-pay
synced 2026-08-12 15:35:38 +08:00
fix 微信APP支付返回数据不正确
This commit is contained in:
@@ -139,7 +139,12 @@ public class WeChatPayService {
|
||||
String xmlResult = WxPayApi.pushOrder(false, params);
|
||||
Map<String, String> result = WxPayKit.xmlToMap(xmlResult);
|
||||
this.verifyErrorMsg(result);
|
||||
return result.get(WeChatPayCode.PREPAY_ID);
|
||||
String prepayId = result.get(WeChatPayCode.PREPAY_ID);
|
||||
Map<String, String> packageParams = WxPayKit.miniAppPrepayIdCreateSign(weChatPayConfig.getWxAppId(), prepayId,
|
||||
weChatPayConfig.getApiKeyV2(), SignType.HMACSHA256);
|
||||
String jsonStr = JacksonUtil.toJson(packageParams);
|
||||
log.info("Jsapi支付的参数:" + jsonStr);
|
||||
return jsonStr;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user