Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提一个 bug,要是github帐号改名的话,将无法更新缓存 #131

Closed
sword-jin opened this issue Aug 1, 2015 · 2 comments
Closed

Comments

@sword-jin
Copy link

public function refreshCache($id)
{
        $user =  User::findOrFail($id);
        $user_info = (new GithubUserDataReader())->getDataFromUserName($user->github_name);
        ...
}

主要是这里根据 name 拿到用户信息,使用 id 会不会好一点

@bynil
Copy link

bynil commented Dec 9, 2015

相同问题,见 https://www.v2ex.com/t/240498#70https://phphub.org/topics/1196 的讨论。

@sword-jin
Copy link
Author

github 用户名改了,phphub保存的是第一次登录时候的github用户名,更新时候根据数据库用户名去github api查找,所以就找不到了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants