diff --git a/domain/cache/res_c/country.go b/domain/cache/res_c/country.go index 37c2ac663c620595ede0e8f2652e60b7317ce465..3e5744da6c4c92fe621cdf65d0a331ddc5152390 100644 --- a/domain/cache/res_c/country.go +++ b/domain/cache/res_c/country.go @@ -18,7 +18,7 @@ func GetCountryIconMap(model *domain.Model) (map[string]string, error) { if len(m) <= 0 { return map[string]string{}, nil } - //SaveAllCountryIcon(model, m) + SaveAllCountryIcon(model, m) } return m, nil } @@ -47,7 +47,7 @@ func GetCountryAreaMap(model *domain.Model) (map[string]string, error) { if len(m) <= 0 { return map[string]string{}, nil } - //SaveAllCountryArea(model, m) + SaveAllCountryArea(model, m) } return m, nil } diff --git a/domain/model/group_m/mic.go b/domain/model/group_m/mic.go index 30ddde2f1bd55bee24d48b8221927a604fc7dccb..ef7212942da71a40398770c2c3daa733055aa2e3 100644 --- a/domain/model/group_m/mic.go +++ b/domain/model/group_m/mic.go @@ -876,8 +876,6 @@ var micGroupNumCache = gcache.New(10000).LRU().Build() // 获取麦上有人的群组&&麦上的人数 // 带lru缓存,1min func GetMicHasInGroupNum(model *domain.Model) (map[string]int64, error) { - m := make(map[string]int64) - return m, nil // get from cache if data, err := micGroupNumCache.Get(micGroupNumKey); err == nil { //model.Log.Infof("GetMicHasInGroupNum cache hit:%v", data) @@ -893,6 +891,12 @@ func GetMicHasInGroupNum(model *domain.Model) (map[string]int64, error) { if err != nil { return nil, myerr.WrapErr(err) } + // todo 临时处理 + m := make(map[string]int64) + for _, v := range groupUuids { + m[v] = 10 + } + return m, nil // resultGroupUuids := make(map[string]int64, len(groupUuids)) //循环lua判断是否, 最后的保证,(猜想:真正麦上有人的群没有很多)