Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
f550215161
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      rule/consume_integral_settlement.go

+ 5
- 1
rule/consume_integral_settlement.go View File

@@ -53,10 +53,14 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask
return return
} }
if isTask && (now.Hour() > 8) && now.After(settleTime) { if isTask && (now.Hour() > 8) && now.After(settleTime) {
session.Rollback()
//TODO::结算时间 ~ 凌晨 8 点运行 //TODO::结算时间 ~ 凌晨 8 点运行
return errors.New("非运行时间") return errors.New("非运行时间")
} }

if isTask && zhios_order_relate_utils.InArr(now.Weekday().String(), []string{"Sunday", "Saturday"}) && subsidyBase.HolidaySettleOpen != 1 {
session.Rollback()
return errors.New("周末不运行")
}
if err != nil { if err != nil {
_ = session.Rollback() _ = session.Rollback()
return err return err


Loading…
Cancel
Save