Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信支付 V3 回调处理方法 AesGcmDecryptGetObjectAsync 升级到 DecryptGetObjectAsync 后保密错 #3084

Open
WXJDLM opened this issue Oct 15, 2024 · 2 comments
Labels
resolved 已解决

Comments

@WXJDLM
Copy link

WXJDLM commented Oct 15, 2024

fa3ab922716a40a8f3e8fd5d653cd638

c85de4fde59bd5dd21895c0609c0ab30

判断有问题..目前_tenpayV3Setting.EncryptionType 是null, 所以走了.Sm4GcmDecryptGetObjectAsync 这个方法,,这种解密就报错了..

null 这种情况应该还是走 AesGcmDecryptGetObjectAsync 就对了..

@JeffreySu
Copy link
Owner

@WXJDLM 对,这对于向下兼容确实会产生问题。作为临时补充方案,您可以在 appsettings.json 的 SenparcWeixinSetting 节点下面,添加 EncryptionType: "AES" 来保持 AES 的加密方式。感谢反馈!

JeffreySu added a commit that referenced this issue Oct 20, 2024
TenPayV3 v1.6.5 修改 SM 证书判断逻辑,向下兼容未升级 appsettings.json 的系统 #3084  感谢 @…
@JeffreySu
Copy link
Owner

@WXJDLM 新版本已发布,非常感谢!

@JeffreySu JeffreySu added the resolved 已解决 label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolved 已解决
Projects
None yet
Development

No branches or pull requests

2 participants