huangjiajun 1 month ago
parent
commit
bb5ffac921
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      rule/consume_integral_settlement.go

+ 1
- 1
rule/consume_integral_settlement.go View File

@@ -249,7 +249,7 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask
var eachAmount float64 = 0 var eachAmount float64 = 0
if hasStoreTotal > 0 { if hasStoreTotal > 0 {
eachAmount = allMoney / float64(hasStoreTotal) eachAmount = allMoney / float64(hasStoreTotal)
session.Where("is_send=? and create_at<?", 0, time.Unix(todays["start"], 0).Format("2006-01-02 15:04:05")).Cols("is_send").Update(&models.SubsidyStoreMoney{IsSend: 1})
session.Where("is_send=? and create_at<?", 0, time.Unix(todays["start"], 0).Format("2006-01-02 15:04:05")).Cols("is_send").Update(&models.SubsidyStoreMoney{IsSend: 1, SendAt: time.Now()})
} }
if hasStoreTotal > 0 && eachAmount > 0 { if hasStoreTotal > 0 && eachAmount > 0 {
for _, v := range subsidyWithUserForStoreList { for _, v := range subsidyWithUserForStoreList {


Loading…
Cancel
Save