|
楼主 |
发表于 2017-5-18 15:39:39
|
显示全部楼层
我试着在起步的微信号内分享页面,分享出来的地址如下:
- http://x5.justep.com/x5/UI2/v_411711_nol_zh_CNs_desktopd_/takeout/index.w?code=081EmpwT1inG5913ovzT1kfnwT1EmpwW&state=STATE#!ownContent
复制代码
这说明分享后的url其实加入了code进去。
再回到我的代码,我的也是和案例一样分享后带了code,然而新用户点击后提示40163,这个微信错误意思是已经被使用了!这岂不更说明code都是一个了吗?
既然是同一个code,那这个问题又如何解决呢?还是我的代码有问题?基本都是按照takeout外卖写的!分享也是您发给我的那个分享出去的!
- HTTP Status 500 - 执行Action:weixin/weixin/userinfo失败,Action[weixin/weixin/userinfo]执行失败,微信错误 errcode=40163, errmsg=code been used, hints: [ req_id: nyXx.A0640th21 ]
- type Exception report
- message 执行Action:weixin/weixin/userinfo失败,Action[weixin/weixin/userinfo]执行失败,微信错误 errcode=40163, errmsg=code been used, hints: [ req_id: nyXx.A0640th21 ]
- description The server encountered an internal error that prevented it from fulfilling this request.
- exception
- javax.servlet.ServletException: 执行Action:weixin/weixin/userinfo失败,Action[weixin/weixin/userinfo]执行失败,微信错误 errcode=40163, errmsg=code been used, hints: [ req_id: nyXx.A0640th21 ]
- json:{"errcode":40163,"errmsg":"code been used, hints: [ req_id: nyXx.A0640th21 ]"}
- com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
- com.justep.baas.servlet.BaasServlet.service(Unknown Source)
- root cause
- com.justep.baas.action.ActionException: Action[weixin/weixin/userinfo]执行失败,微信错误 errcode=40163, errmsg=code been used, hints: [ req_id: nyXx.A0640th21 ]
- json:{"errcode":40163,"errmsg":"code been used, hints: [ req_id: nyXx.A0640th21 ]"}
- com.justep.baas.action.Engine.execAction(Unknown Source)
- com.justep.baas.action.Engine.execAction(Unknown Source)
- com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
- com.justep.baas.servlet.BaasServlet.service(Unknown Source)
- root cause
- java.lang.reflect.InvocationTargetException
- sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
- sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- java.lang.reflect.Method.invoke(Unknown Source)
- com.justep.baas.action.Engine.execAction(Unknown Source)
- com.justep.baas.action.Engine.execAction(Unknown Source)
- com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
- com.justep.baas.servlet.BaasServlet.service(Unknown Source)
- root cause
- me.chanjar.weixin.common.exception.WxErrorException: 微信错误 errcode=40163, errmsg=code been used, hints: [ req_id: nyXx.A0640th21 ]
- json:{"errcode":40163,"errmsg":"code been used, hints: [ req_id: nyXx.A0640th21 ]"}
- me.chanjar.weixin.common.util.http.SimpleGetRequestExecutor.execute(SimpleGetRequestExecutor.java:40)
- me.chanjar.weixin.common.util.http.SimpleGetRequestExecutor.execute(SimpleGetRequestExecutor.java:20)
- me.chanjar.weixin.mp.api.WxMpServiceImpl.oauth2getAccessToken(Unknown Source)
- weixin.UserInfo.service(UserInfo.java:26)
- weixin.Weixin__do.userinfo(Weixin__do.java:139)
- sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
- sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- java.lang.reflect.Method.invoke(Unknown Source)
- com.justep.baas.action.Engine.execAction(Unknown Source)
- com.justep.baas.action.Engine.execAction(Unknown Source)
- com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
- com.justep.baas.servlet.BaasServlet.service(Unknown Source)
- note The full stack trace of the root cause is available in the Apache Tomcat/6.0.41 logs.
- Apache Tomcat/6.0.41
复制代码 |
|