From 75baaf83fd63905f90cf80b4a4c5eed6bc9948de Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Mon, 1 May 2023 15:52:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=B6=E6=97=8F=E6=8E=92=E8=A1=8C=E5=A5=96?= =?UTF-8?q?=E5=8A=B1=E8=A1=A5=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cron/cron.go | 1 - cron/group_cron/group_power_month_act.go | 24 ++++++++++++------------ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/cron/cron.go b/cron/cron.go index 4f1b9bf..181ba0b 100644 --- a/cron/cron.go +++ b/cron/cron.go @@ -16,5 +16,4 @@ func Init() { mic_cron.OnMicCheck() // 检查上麦 group_cron.GroupPowerExpClear() // 清理家族经验/等级 group_cron.GroupPowerMonthRankAct() - group_cron.BufaGroupPowerMonthRankAct() } diff --git a/cron/group_cron/group_power_month_act.go b/cron/group_cron/group_power_month_act.go index f60ee22..1f6f86e 100644 --- a/cron/group_cron/group_power_month_act.go +++ b/cron/group_cron/group_power_month_act.go @@ -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() +//} -- 2.22.0