|

楼主 |
发表于 2017-5-28 11:21:05
|
显示全部楼层
本帖最后由 wangguangfan 于 2017-5-28 11:50 编辑
- 2017-05-28 10:37:11 [http-80-2] [com.justep.baas.BaasException] ERROR: Action[weixin/weixin/userinfo]执行失败,微信错误 errcode=40163, errmsg=code been used, hints: [ req_id: dTsH70031th11 ]
- json:{"errcode":40163,"errmsg":"code been used, hints: [ req_id: dTsH70031th11 ]"}
- java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:497)
- at com.justep.baas.action.Engine.execAction(Unknown Source)
- at com.justep.baas.action.Engine.execAction(Unknown Source)
- at com.justep.baas.servlet.BaasServlet.execService(Unknown Source)
- at com.justep.baas.servlet.BaasServlet.service(Unknown Source)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
- at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
- at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
- at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
- at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
- at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
- at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
- at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
- at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
- at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: me.chanjar.weixin.common.exception.WxErrorException: 微信错误 errcode=40163, errmsg=code been used, hints: [ req_id: dTsH70031th11 ]
- json:{"errcode":40163,"errmsg":"code been used, hints: [ req_id: dTsH70031th11 ]"}
- at me.chanjar.weixin.common.util.http.SimpleGetRequestExecutor.execute(SimpleGetRequestExecutor.java:40)
- at me.chanjar.weixin.common.util.http.SimpleGetRequestExecutor.execute(SimpleGetRequestExecutor.java:20)
- at me.chanjar.weixin.mp.api.WxMpServiceImpl.oauth2getAccessToken(Unknown Source)
- at weixin.UserInfo.service(UserInfo.java:26)
- at weixin.Weixin__do.userinfo(Weixin__do.java:139)
- ... 20 more
复制代码 按你说我改成里面的支付了,但是会出现上面这些错误,这个我应该怎么改?
因为我这个是在刚进入网站的时候就已经是微信授权获取用户信息了,而到支付的时候又根据code来获取用户信息,所以会出现上面这些错误。
|
|