-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
自定义实现cache的时候,发现获取access_token判断方式 #529
Comments
研究一下 |
感觉这里的判断改为判断长度不为0会好一点? |
需要俩次判断!看下源码 |
#721 这里现在改成了判断空字符串,但是没法兼容以前自定义cache,
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
val := ak.cache.Get(accessTokenCacheKey)
if val != nil {
accessToken = val.(string)
return
}
如果val=“”, 那就不是nil
The text was updated successfully, but these errors were encountered: