修复微信登录ak本地缓存刷新问题

This commit is contained in:
孟帅
2023-06-13 15:45:30 +08:00
parent e6abfbcacf
commit a232986311
15 changed files with 406 additions and 388 deletions

View File

@@ -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()