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

fix:GetAccessTokenContext从cache中获取字符窜为空时,从微信服务器获取 #721

Merged
merged 1 commit into from
Sep 24, 2023

Conversation

markwang1992
Copy link
Contributor

No description provided.

@silenceper silenceper merged commit 49c4cfa into silenceper:v2 Sep 24, 2023
10 checks passed
if val := ak.cache.Get(accessTokenCacheKey); val != nil {
return val.(string), nil
val := ak.cache.Get(accessTokenCacheKey)
if accessToken = val.(string); accessToken != "" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

当redis不存在access token key时,val为nil,val.(string)会crash。

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

Successfully merging this pull request may close these issues.

3 participants