{"action":"created","issue":{"url":"https://api.github.com/repos/android-cn/android-discuss/issues/443","repository_url":"https://api.github.com/repos/android-cn/android-discuss","labels_url":"https://api.github.com/repos/android-cn/android-discuss/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/android-cn/android-discuss/issues/443/comments","events_url":"https://api.github.com/repos/android-cn/android-discuss/issues/443/events","html_url":"https://github.com/android-cn/android-discuss/issues/443","id":149626958,"number":443,"title":"客户端中，如果 token过期了，大家是怎么做的？在请求接口返回的时候 判断？直接跳转登录页面？有没有比较好的实现方案","user":{"login":"yeming1001","id":5943707,"avatar_url":"https://avatars.githubusercontent.com/u/5943707?v=3","gravatar_id":"","url":"https://api.github.com/users/yeming1001","html_url":"https://github.com/yeming1001","followers_url":"https://api.github.com/users/yeming1001/followers","following_url":"https://api.github.com/users/yeming1001/following{/other_user}","gists_url":"https://api.github.com/users/yeming1001/gists{/gist_id}","starred_url":"https://api.github.com/users/yeming1001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeming1001/subscriptions","organizations_url":"https://api.github.com/users/yeming1001/orgs","repos_url":"https://api.github.com/users/yeming1001/repos","events_url":"https://api.github.com/users/yeming1001/events{/privacy}","received_events_url":"https://api.github.com/users/yeming1001/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-20T01:25:06Z","updated_at":"2016-04-20T02:01:05Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/android-cn/android-discuss/issues/comments/212208770","html_url":"https://github.com/android-cn/android-discuss/issues/443#issuecomment-212208770","issue_url":"https://api.github.com/repos/android-cn/android-discuss/issues/443","id":212208770,"user":{"login":"yeming1001","id":5943707,"avatar_url":"https://avatars.githubusercontent.com/u/5943707?v=3","gravatar_id":"","url":"https://api.github.com/users/yeming1001","html_url":"https://github.com/yeming1001","followers_url":"https://api.github.com/users/yeming1001/followers","following_url":"https://api.github.com/users/yeming1001/following{/other_user}","gists_url":"https://api.github.com/users/yeming1001/gists{/gist_id}","starred_url":"https://api.github.com/users/yeming1001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeming1001/subscriptions","organizations_url":"https://api.github.com/users/yeming1001/orgs","repos_url":"https://api.github.com/users/yeming1001/repos","events_url":"https://api.github.com/users/yeming1001/events{/privacy}","received_events_url":"https://api.github.com/users/yeming1001/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T02:01:05Z","updated_at":"2016-04-20T02:01:05Z","body":"@biaomingzhong 在接口类中传入 上下位对象，然后再每个请求方法的返回中判断 token过期的错误码，相应操作后直接跳转到登陆页面？"}}