Bladeren bron

更新

master
huangjiajun 10 maanden geleden
bovenliggende
commit
f550215161
1 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  1. +5
    -1
      rule/consume_integral_settlement.go

+ 5
- 1
rule/consume_integral_settlement.go Bestand weergeven

@@ -53,10 +53,14 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask
return
}
if isTask && (now.Hour() > 8) && now.After(settleTime) {
session.Rollback()
//TODO::结算时间 ~ 凌晨 8 点运行
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 {
_ = session.Rollback()
return err


Laden…
Annuleren
Opslaan