Commit d91bafe1 authored by chenweijian's avatar chenweijian

群组优化

parent 7998a65a
......@@ -10,7 +10,7 @@ import (
func GroupCountryListSort() {
// 常用国家-每15分钟计算国家房间列表排序 /v1/imGroup/country [get] 接口
spec := "0 */2 * * * ?"
spec := "0 */15 * * * ?"
c := cron.New()
_ = c.AddFunc(spec, func() {
var model = domain.CreateModelNil()
......@@ -18,7 +18,7 @@ func GroupCountryListSort() {
})
// 非常用国家-每60分钟计算国家房间列表排序 /v1/imGroup/country [get] 接口
spec2 := "0 28 * * * ?"
spec2 := "0 43 * * * ?"
_ = c.AddFunc(spec2, func() {
var model = domain.CreateModelNil()
group_s.SortGroupNotCommonCountryList(model)
......
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