Commit a46d5b35 authored by chenweijian's avatar chenweijian

Merge branch 'fix/family_month_rank' into 'master'

Fix/family month rank

See merge request !34
parents 9c272031 d3509f92
......@@ -16,5 +16,4 @@ func Init() {
mic_cron.OnMicCheck() // 检查上麦
group_cron.GroupPowerExpClear() // 清理家族经验/等级
group_cron.GroupPowerMonthRankAct()
group_cron.BufaGroupPowerMonthRankAct()
}
......@@ -21,15 +21,15 @@ func GroupPowerMonthRankAct() {
c.Start()
}
func BufaGroupPowerMonthRankAct() {
c := cron.New()
spec := "0 50 15 1 * ?"
_ = c.AddFunc(spec, func() {
var model = domain.CreateModelNil()
if err := group_power_s.BufaCalcGroupPowerMonthRankAct(model); err != nil {
model.Log.Errorf("BufaGroupPowerMonthRankAct fail:%v", err)
}
})
c.Start()
}
//func BufaGroupPowerMonthRankAct() {
// c := cron.New()
// spec := "0 50 15 1 * ?"
// _ = c.AddFunc(spec, func() {
// var model = domain.CreateModelNil()
// if err := group_power_s.BufaCalcGroupPowerMonthRankAct(model); err != nil {
// model.Log.Errorf("BufaGroupPowerMonthRankAct fail:%v", err)
// }
// })
//
// 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