mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 21:12:14 +08:00
修复微信登录ak本地缓存刷新问题
This commit is contained in:
@@ -34,7 +34,7 @@ func (r *Cache) SetCtx(ctx context.Context) {
|
||||
// Get 获取一个值
|
||||
func (r *Cache) Get(key string) interface{} {
|
||||
get, err := r.cache.Get(r.ctx, key)
|
||||
if err != nil {
|
||||
if err != nil || get.IsNil() || get.IsEmpty() {
|
||||
return nil
|
||||
}
|
||||
return get.Interface()
|
||||
|
Reference in New Issue
Block a user