mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-03-10 00:13:36 +08:00
fix(tenpayv3): 修复调起支付所需参数签名生成错误
This commit is contained in:
@@ -44,7 +44,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
|||||||
string package = $"prepay_id={prepayId}";
|
string package = $"prepay_id={prepayId}";
|
||||||
string sign = Utilities.RSAUtility.SignWithSHA256(
|
string sign = Utilities.RSAUtility.SignWithSHA256(
|
||||||
privateKey: client.WechatMerchantCertPrivateKey,
|
privateKey: client.WechatMerchantCertPrivateKey,
|
||||||
plainText: $"{appId}\n{timestamp}\n{nonce}\n{package}"
|
plainText: $"{appId}\n{timestamp}\n{nonce}\n{package}\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
return new ReadOnlyDictionary<string, string>(new Dictionary<string, string>()
|
return new ReadOnlyDictionary<string, string>(new Dictionary<string, string>()
|
||||||
@@ -99,7 +99,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
|||||||
string nonce = Guid.NewGuid().ToString("N");
|
string nonce = Guid.NewGuid().ToString("N");
|
||||||
string sign = Utilities.RSAUtility.SignWithSHA256(
|
string sign = Utilities.RSAUtility.SignWithSHA256(
|
||||||
privateKey: client.WechatMerchantCertPrivateKey,
|
privateKey: client.WechatMerchantCertPrivateKey,
|
||||||
plainText: $"{appId}\n{timestamp}\n{nonce}\n{prepayId}"
|
plainText: $"{appId}\n{timestamp}\n{nonce}\n{prepayId}\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
return new ReadOnlyDictionary<string, string>(new Dictionary<string, string>()
|
return new ReadOnlyDictionary<string, string>(new Dictionary<string, string>()
|
||||||
|
|||||||
Reference in New Issue
Block a user