From 69f225f67783595dd6f10fa8e1be3d67f37293aa Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Mon, 1 May 2023 15:26:24 +0800 Subject: [PATCH] Fix/family month rank --- cron/group_cron/group_power_month_act.go | 2 +- domain/service/group_power_s/group_power.go | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/cron/group_cron/group_power_month_act.go b/cron/group_cron/group_power_month_act.go index 0156e6b..a9ed714 100644 --- a/cron/group_cron/group_power_month_act.go +++ b/cron/group_cron/group_power_month_act.go @@ -23,7 +23,7 @@ func GroupPowerMonthRankAct() { func BufaGroupPowerMonthRankAct() { c := cron.New() - spec := "0 4 15 1 * ?" + spec := "0 28 15 1 * ?" _ = c.AddFunc(spec, func() { var model = domain.CreateModelNil() if err := group_power_s.BufaCalcGroupPowerMonthRankAct(model); err != nil { diff --git a/domain/service/group_power_s/group_power.go b/domain/service/group_power_s/group_power.go index 1770221..c7c73a8 100644 --- a/domain/service/group_power_s/group_power.go +++ b/domain/service/group_power_s/group_power.go @@ -255,7 +255,7 @@ func DoCalcGroupPowerMonthRankAct(model *domain.Model, calcMonth, beginDate, end } func BufaDoCalcGroupPowerMonthRankAct(model *domain.Model, calcMonth, beginDate, endDate, starDate string) error { - areaList := []int{1, 2} + areaList := []int{2} for _, area := range areaList { // 计算获奖 model := domain.CreateModelContext(model.MyContext) response, err := GetGroupPowerRankResp(model, beginDate, endDate, 0, groupPower_e.GroupPowerUserHas, area) @@ -276,11 +276,9 @@ func BufaDoCalcGroupPowerMonthRankAct(model *domain.Model, calcMonth, beginDate, return err } - //if area == 1 { + //if area == 2 { // for _, v := range logList { - // if v.RankUser == 1 { - // model.Log.Infof("bufajiangli award:%+v", v) - // } + // model.Log.Infof("bufajiangli award:%+v", v) // } //} @@ -454,7 +452,7 @@ func bufaGetAwardAndLogList(model *domain.Model, powerIds []uint64, items []grou // HeaddressDuration: oAward.HeaddressDay}) // 家族成员奖励 for i, m := range v.StarList { - if m.User.Id == 5343751 || m.User.Id == 1180791 { + if m.User.Code == "1217599" || m.User.Id == 1180791 { continue } uRank := i + 1 -- 2.22.0