{"action":"closed","issue":{"url":"https://api.github.com/repos/wxlite-plus/ez-wxlite/issues/6","repository_url":"https://api.github.com/repos/wxlite-plus/ez-wxlite","labels_url":"https://api.github.com/repos/wxlite-plus/ez-wxlite/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/wxlite-plus/ez-wxlite/issues/6/comments","events_url":"https://api.github.com/repos/wxlite-plus/ez-wxlite/issues/6/events","html_url":"https://github.com/wxlite-plus/ez-wxlite/issues/6","id":421573362,"node_id":"MDU6SXNzdWU0MjE1NzMzNjI=","number":6,"title":"request的封装：程序自动走登录的流程，然后再发起一遍请求相关问题","user":{"login":"mydzoo","id":23370307,"node_id":"MDQ6VXNlcjIzMzcwMzA3","avatar_url":"https://avatars1.githubusercontent.com/u/23370307?v=4","gravatar_id":"","url":"https://api.github.com/users/mydzoo","html_url":"https://github.com/mydzoo","followers_url":"https://api.github.com/users/mydzoo/followers","following_url":"https://api.github.com/users/mydzoo/following{/other_user}","gists_url":"https://api.github.com/users/mydzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/mydzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mydzoo/subscriptions","organizations_url":"https://api.github.com/users/mydzoo/orgs","repos_url":"https://api.github.com/users/mydzoo/repos","events_url":"https://api.github.com/users/mydzoo/events{/privacy}","received_events_url":"https://api.github.com/users/mydzoo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-03-15T15:24:05Z","updated_at":"2019-03-20T03:57:08Z","closed_at":"2019-03-20T03:57:08Z","author_association":"NONE","body":"```\r\nonShow: function() {\r\nthis.getAccountInfo()\r\n},\r\n```\r\n第一次请求是对的，先授权，再请求这个api；但是当再次触发`onShow`的时候，又是走了2次请求。难道只能放在`onLoad`里面吗？\r\n\r\n经过测试，必须在获取sessionid的方法再次\r\nlet sessionId = wx.getStorageSync('sessionId');\r\n\r\n同时// 统一注入约定的header似乎也存在这个问题。\r\n\r\n不知道是本身有问题，还是我代码改动导致的问题。"}}
{"actor":{"display_login":"jack-Lo"}}