Commit 2671b9f0 authored by chenweijian's avatar chenweijian

群组优化

parent d91bafe1
...@@ -14,14 +14,18 @@ func GroupCountryListSort() { ...@@ -14,14 +14,18 @@ func GroupCountryListSort() {
c := cron.New() c := cron.New()
_ = c.AddFunc(spec, func() { _ = c.AddFunc(spec, func() {
var model = domain.CreateModelNil() var model = domain.CreateModelNil()
model.Log.Infof("GroupCountryListSort Common start")
group_s.SortGroupCommonCountryList(model) group_s.SortGroupCommonCountryList(model)
model.Log.Infof("GroupCountryListSort Common end")
}) })
// 非常用国家-每60分钟计算国家房间列表排序 /v1/imGroup/country [get] 接口 // 非常用国家-每60分钟计算国家房间列表排序 /v1/imGroup/country [get] 接口
spec2 := "0 43 * * * ?" spec2 := "0 43 * * * ?"
_ = c.AddFunc(spec2, func() { _ = c.AddFunc(spec2, func() {
var model = domain.CreateModelNil() var model = domain.CreateModelNil()
model.Log.Infof("GroupCountryListSort not Common start")
group_s.SortGroupNotCommonCountryList(model) group_s.SortGroupNotCommonCountryList(model)
model.Log.Infof("GroupCountryListSort not Common end")
}) })
c.Start() c.Start()
......
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