{"action":"created","issue":{"url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/458","repository_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools","labels_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/458/comments","events_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/458/events","html_url":"https://github.com/Wechat-Group/weixin-java-tools/issues/458","id":293959725,"number":458,"title":"小程序code 换取session_key失败","user":{"login":"lly835","id":2225913,"avatar_url":"https://avatars3.githubusercontent.com/u/2225913?v=4","gravatar_id":"","url":"https://api.github.com/users/lly835","html_url":"https://github.com/lly835","followers_url":"https://api.github.com/users/lly835/followers","following_url":"https://api.github.com/users/lly835/following{/other_user}","gists_url":"https://api.github.com/users/lly835/gists{/gist_id}","starred_url":"https://api.github.com/users/lly835/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lly835/subscriptions","organizations_url":"https://api.github.com/users/lly835/orgs","repos_url":"https://api.github.com/users/lly835/repos","events_url":"https://api.github.com/users/lly835/events{/privacy}","received_events_url":"https://api.github.com/users/lly835/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-02T17:11:44Z","updated_at":"2018-03-20T09:06:54Z","closed_at":"2018-02-08T10:11:24Z","author_association":"NONE","body":"错误日志如下\r\n```\r\n2018-02-03 01:08:04.193 ERROR 30745 --- [           main] c.b.wx.miniapp.api.impl.WxMaServiceImpl  : \r\n【请求地址】: https://api.weixin.qq.com/sns/jscode2session?access_token=6_a_VyvWAGby5dEAUN_B7cISwnGgE4ZOKt22Ujv3wQ-zKcdwoXTfz9XyNDHTJ-aCUxIajtXnQwnYDdOTc4gBPnhXpiTRHQ7TzgQ2TK9oVcoQUqbIulltUQakbX0OFuKUr-Ido2PslZweAXDN_sNSIjAFAUZP\r\n【请求参数】：js_code=021ByuFs0fNXie1T5lJs0IwBFs0ByuF1&secret=xxxxxxxxxxxxx&grant_type=authorization_code&appid=xxxxxxxxxxxxxxx\r\n【错误信息】：{\"errcode\":40029,\"errmsg\":\"invalid code, hints: [ req_id: N37KMa0605th21 ]\"}\r\n```\r\n文档见`https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-login.html#wxloginobject`\r\n应该访问这样的接口才对吧\r\n`https://api.weixin.qq.com/sns/jscode2session?appid=APPID&secret=SECRET&js_code=JSCODE&grant_type=authorization_code`"},"comment":{"url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/comments/374523940","html_url":"https://github.com/Wechat-Group/weixin-java-tools/issues/458#issuecomment-374523940","issue_url":"https://api.github.com/repos/Wechat-Group/weixin-java-tools/issues/458","id":374523940,"user":{"login":"lly835","id":2225913,"avatar_url":"https://avatars3.githubusercontent.com/u/2225913?v=4","gravatar_id":"","url":"https://api.github.com/users/lly835","html_url":"https://github.com/lly835","followers_url":"https://api.github.com/users/lly835/followers","following_url":"https://api.github.com/users/lly835/following{/other_user}","gists_url":"https://api.github.com/users/lly835/gists{/gist_id}","starred_url":"https://api.github.com/users/lly835/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lly835/subscriptions","organizations_url":"https://api.github.com/users/lly835/orgs","repos_url":"https://api.github.com/users/lly835/repos","events_url":"https://api.github.com/users/lly835/events{/privacy}","received_events_url":"https://api.github.com/users/lly835/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T09:06:54Z","updated_at":"2018-03-20T09:06:54Z","author_association":"NONE","body":"@binarywang 今天试了下，可以了。。。什么也没改。。。"}}
{"actor":{"display_login":"lly835"}}