fix(tenpayv3): 修复自动加密请求中敏感信息字段时未指定平台证书序列号的问题

This commit is contained in:
Fu Diwei
2021-11-25 18:55:16 +08:00
parent a383443363
commit 3a7e9a2208
2 changed files with 4 additions and 1 deletions

View File

@@ -57,7 +57,9 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
throw new Exceptions.WechatTenpayEventVerificationException("Encrypt request failed, because there is no platform certificate in the manager.");
}
certificate = certs.First().Certificate;
var cert = certs.First();
certificate = cert.Certificate;
request.WechatpayCertSerialNumber = cert.SerialNumber;
}
return Utilities.RSAUtility.EncryptWithECBByCertificate(