Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
1d19023a
Commit
1d19023a
authored
Jul 12, 2022
by
zhuxiao
Browse files
修复微信app调起支付签名串错误问题
parent
a37dc48c
Changes
1
Hide whitespace changes
Inline
Side-by-side
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/kits/WxpayV3Util.java
View file @
1d19023a
...
@@ -136,7 +136,7 @@ public class WxpayV3Util {
...
@@ -136,7 +136,7 @@ public class WxpayV3Util {
String
packageValue
=
"Sign=WXPay"
;
String
packageValue
=
"Sign=WXPay"
;
// 此map用于客户端与微信服务器交互
// 此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
(
"sign"
,
SignUtils
.
sign
(
beforeSign
,
PemUtils
.
loadPrivateKey
(
new
FileInputStream
(
wxPayConfig
.
getPrivateKeyPath
()))));
payInfo
.
put
(
"prepayId"
,
prepayId
);
payInfo
.
put
(
"prepayId"
,
prepayId
);
payInfo
.
put
(
"partnerId"
,
partnerId
);
payInfo
.
put
(
"partnerId"
,
partnerId
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment