{"action":"created","issue":{"url":"https://api.github.com/repos/node-webot/wechat-oauth/issues/15","repository_url":"https://api.github.com/repos/node-webot/wechat-oauth","labels_url":"https://api.github.com/repos/node-webot/wechat-oauth/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/node-webot/wechat-oauth/issues/15/comments","events_url":"https://api.github.com/repos/node-webot/wechat-oauth/issues/15/events","html_url":"https://github.com/node-webot/wechat-oauth/issues/15","id":128099181,"number":15,"title":"按照Wechat， Wechat-Api项目的AccessToken的定义，最好让AccessToken保持一致","user":{"login":"w304807481","id":10370582,"avatar_url":"https://avatars.githubusercontent.com/u/10370582?v=3","gravatar_id":"","url":"https://api.github.com/users/w304807481","html_url":"https://github.com/w304807481","followers_url":"https://api.github.com/users/w304807481/followers","following_url":"https://api.github.com/users/w304807481/following{/other_user}","gists_url":"https://api.github.com/users/w304807481/gists{/gist_id}","starred_url":"https://api.github.com/users/w304807481/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w304807481/subscriptions","organizations_url":"https://api.github.com/users/w304807481/orgs","repos_url":"https://api.github.com/users/w304807481/repos","events_url":"https://api.github.com/users/w304807481/events{/privacy}","received_events_url":"https://api.github.com/users/w304807481/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-01-22T07:19:19Z","updated_at":"2016-10-21T07:56:39Z","closed_at":null,"body":"多一个data节点 容易让大家误解，略显多余。\r\n建议如下\r\nvar AccessToken = function (data) {\r\n  if (!(this instanceof AccessToken)) {\r\n    return new AccessToken(data);\r\n  }\r\n  this.expireTime = data.expire_time;\r\n  this.accessToken = data.access_token;\r\n  this.expireIn = data.expires_in;\r\n  this.refreshToken = data.refresh_token;\r\n  this.openid = data.openid;\r\n  this.scope = data.scope;\r\n};\r\n\r\n...\r\nAccessToken.prototype.isValid = function () {\r\n  return !!this.accessToken && (new Date().getTime()) < this.expireTime;\r\n};"},"comment":{"url":"https://api.github.com/repos/node-webot/wechat-oauth/issues/comments/255318269","html_url":"https://github.com/node-webot/wechat-oauth/issues/15#issuecomment-255318269","issue_url":"https://api.github.com/repos/node-webot/wechat-oauth/issues/15","id":255318269,"user":{"login":"superlbr","id":8142164,"avatar_url":"https://avatars.githubusercontent.com/u/8142164?v=3","gravatar_id":"","url":"https://api.github.com/users/superlbr","html_url":"https://github.com/superlbr","followers_url":"https://api.github.com/users/superlbr/followers","following_url":"https://api.github.com/users/superlbr/following{/other_user}","gists_url":"https://api.github.com/users/superlbr/gists{/gist_id}","starred_url":"https://api.github.com/users/superlbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superlbr/subscriptions","organizations_url":"https://api.github.com/users/superlbr/orgs","repos_url":"https://api.github.com/users/superlbr/repos","events_url":"https://api.github.com/users/superlbr/events{/privacy}","received_events_url":"https://api.github.com/users/superlbr/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T07:56:39Z","updated_at":"2016-10-21T07:56:39Z","body":"+1，根本没法跟wechat-api共存"}}
{"actor":{"display_login":"superlbr"}}