Commit c90646fe authored by chenweijian's avatar chenweijian

group support

parent bf932f16
......@@ -98,9 +98,9 @@ func groupPowerStar(model *domain.Model, sendGiftEvent *gift_ev.SendGiftEvent) {
// 群组扶持增加流水数据
func groupSupportAddConsume(model *domain.Model, sendGiftEvent *gift_ev.SendGiftEvent) {
//if time.Now().Unix() <= 1692964800 { // cwj----
// return nil
//}
if time.Now().Unix() <= 1692843600 {
return
}
model.Log.Infof("groupSupportAddConsume UserId:%d, sendGiftEvent:%+v", sendGiftEvent.SendUserId, sendGiftEvent)
if sendGiftEvent.SceneType != gift_e.GroupSceneType || sendGiftEvent.SceneUid == "" {
model.Log.Infof("groupSupportAddConsume UserId:%d, sendGiftEvent:%+v", sendGiftEvent.SendUserId, sendGiftEvent)
......
......@@ -97,7 +97,7 @@ func CalcGroupSupport_OldData() {
return
}
c := cron.New()
spec := "0 55 9 24 8 ?"
spec := "0 30 10 24 8 ?"
_ = c.AddFunc(spec, func() {
defer utils.CheckGoPanic()
var model = domain.CreateModelNil()
......@@ -105,7 +105,7 @@ func CalcGroupSupport_OldData() {
model.Log.Infof("CalcGroupSupport_OldData start")
beginTime, _, period := group_m.GetSupportLevelTime(time.Now())
endTime := time.Unix(1692964800, 0) // cwj----
endTime := time.Unix(1692843600, 0)
g := gift_m.GiftOperate{SceneType: gift_e.GroupSceneType, Model: model}
records, err := g.BatchGetConsumeByRange(beginTime, endTime)
......
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