-
Notifications
You must be signed in to change notification settings - Fork 254
sdk0.2.16 NotificationParser解密时报错Empty key #220
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
Comments
获取body片段,使用的issue里另一位提供的,试过网上多种getbody的代码
这是另一个
两种都是一致的报错。 |
这是获取微信端回调的方式。
由于微信小程序时2025年之后开的,使用sdk为0.2.16,所以都是使用RSAPublicKey 获取的config |
java版本1.8.400+,环境为花生壳内网穿透。 body内容 |
报错信息
Caused by: java.lang.IllegalArgumentException: Empty key
at javax.crypto.spec.SecretKeySpec. (SecretKeySpec.java:99)
at com.wechat.pay.java.core.cipher.AbstractAeadCipher.decrypt (AbstractAeadCipher.java:71)
at com.wechat.pay.java.core.notification.NotificationParser.decryptData (NotificationParser.java:154)
at com.wechat.pay.java.core.notification.NotificationParser.getDecryptObject (NotificationParser.java:110)
at com.wechat.pay.java.core.notification.NotificationParser.parse (NotificationParser.java:50)
at com.fish.pay.common.wechat.WeChatPayment.paySuccessCheck (WeChatPayment.java:178)
at com.fish.api.server.controller.api.ApiPayController.renotify (ApiPayController.java:130)
at com.fish.api.server.controller.api.ApiPayController$$FastClassBySpringCGLIB$$e2e58982.invoke ()
The text was updated successfully, but these errors were encountered: