jfinalweixin base64

java.lang.IllegalArgumentException: Last unit does not have enough valid bits

at java.util.Base64$Decoder.decode0(Unknown Source)

at java.util.Base64$Decoder.decode(Unknown Source)

at java.util.Base64$Decoder.decode(Unknown Source)

at com.jfinal.kit.Base64Kit$Java8Base64.decode(Base64Kit.java:134)

at com.jfinal.kit.Base64Kit.decode(Base64Kit.java:82)

at com.jfinal.weixin.sdk.encrypt.WxaBizDataCrypt.decrypt(WxaBizDataCrypt.java:37)

at com.jfinal.wxaapp.api.WxaUserApi.getUserInfo(WxaUserApi.java:55)

at com.yuanju.yshop.api.wxapp.AuthController.setUserInfo(AuthController.java:86)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.jfinal.aop.Invocation.invoke(Invocation.java:83)

at com.yuanju.yshop.platform.interceptor.ParamPkgInterceptor.intercept(ParamPkgInterceptor.java:100)

at com.jfinal.aop.Invocation.invoke(Invocation.java:77)

at com.yuanju.yshop.platform.interceptor.ApiInterceptor.interceptor(ApiInterceptor.java:139)

at com.yuanju.yshop.platform.interceptor.AuthInterceptor.intercept(AuthInterceptor.java:48)

at com.jfinal.aop.Invocation.invoke(Invocation.java:77)

at com.jfinal.plugin.activerecord.tx.TxByMethods.intercept(TxByMethods.java:57)

at com.jfinal.aop.Invocation.invoke(Invocation.java:77)

at com.jfinal.core.ActionHandler.handle(ActionHandler.java:90)

at com.yuanju.yshop.platform.handler.GlobalHandler.handle(GlobalHandler.java:91)

at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:89)


评论区

小风

2020-03-06 14:46

jfinal weixin 的base64 解密 为什么报错呢

JFinal

2020-03-06 20:30

参数错误了,注意传递正确的参数进去

热门反馈

扫码入社