Commit d3509f92 authored by chenweijian's avatar chenweijian

Fix/family month rank

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