Commit 5a04f6b5 authored by iamhujiebin's avatar iamhujiebin

Revert "1"

This reverts commit 0500449b.
parent 0500449b
...@@ -18,7 +18,7 @@ func GetCountryIconMap(model *domain.Model) (map[string]string, error) { ...@@ -18,7 +18,7 @@ func GetCountryIconMap(model *domain.Model) (map[string]string, error) {
if len(m) <= 0 { if len(m) <= 0 {
return map[string]string{}, nil return map[string]string{}, nil
} }
//SaveAllCountryIcon(model, m) SaveAllCountryIcon(model, m)
} }
return m, nil return m, nil
} }
...@@ -47,7 +47,7 @@ func GetCountryAreaMap(model *domain.Model) (map[string]string, error) { ...@@ -47,7 +47,7 @@ func GetCountryAreaMap(model *domain.Model) (map[string]string, error) {
if len(m) <= 0 { if len(m) <= 0 {
return map[string]string{}, nil return map[string]string{}, nil
} }
//SaveAllCountryArea(model, m) SaveAllCountryArea(model, m)
} }
return m, nil return m, nil
} }
......
...@@ -876,8 +876,6 @@ var micGroupNumCache = gcache.New(10000).LRU().Build() ...@@ -876,8 +876,6 @@ var micGroupNumCache = gcache.New(10000).LRU().Build()
// 获取麦上有人的群组&&麦上的人数 // 获取麦上有人的群组&&麦上的人数
// 带lru缓存,1min // 带lru缓存,1min
func GetMicHasInGroupNum(model *domain.Model) (map[string]int64, error) { func GetMicHasInGroupNum(model *domain.Model) (map[string]int64, error) {
m := make(map[string]int64)
return m, nil
// get from cache // get from cache
if data, err := micGroupNumCache.Get(micGroupNumKey); err == nil { if data, err := micGroupNumCache.Get(micGroupNumKey); err == nil {
//model.Log.Infof("GetMicHasInGroupNum cache hit:%v", data) //model.Log.Infof("GetMicHasInGroupNum cache hit:%v", data)
...@@ -893,6 +891,12 @@ func GetMicHasInGroupNum(model *domain.Model) (map[string]int64, error) { ...@@ -893,6 +891,12 @@ func GetMicHasInGroupNum(model *domain.Model) (map[string]int64, error) {
if err != nil { if err != nil {
return nil, myerr.WrapErr(err) 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)) resultGroupUuids := make(map[string]int64, len(groupUuids))
//循环lua判断是否, 最后的保证,(猜想:真正麦上有人的群没有很多) //循环lua判断是否, 最后的保证,(猜想:真正麦上有人的群没有很多)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment