mirror of
https://github.com/jeequan/jeepay
synced 2024-11-17 23:08:03 +08:00
修复微信app调起支付签名串错误问题
This commit is contained in:
parent
a37dc48c2a
commit
1d19023a48
@ -136,7 +136,7 @@ public class WxpayV3Util {
|
||||
|
||||
String packageValue = "Sign=WXPay";
|
||||
// 此map用于客户端与微信服务器交互
|
||||
String beforeSign = String.format("%s\n%s\n%s\n%s\n", wxAppId, timestamp, nonceStr, "prepay_id=" + prepayId);
|
||||
String beforeSign = String.format("%s\n%s\n%s\n%s\n", wxAppId, timestamp, nonceStr, prepayId);
|
||||
payInfo.put("sign", SignUtils.sign(beforeSign, PemUtils.loadPrivateKey(new FileInputStream(wxPayConfig.getPrivateKeyPath()))));
|
||||
payInfo.put("prepayId", prepayId);
|
||||
payInfo.put("partnerId", partnerId);
|
||||
|
Loading…
Reference in New Issue
Block a user