huangjiajun vor 1 Jahr
Ursprung
Commit
1897d781c5
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. +3
    -2
      rule/consume_integral_settlement.go

+ 3
- 2
rule/consume_integral_settlement.go Datei anzeigen

@@ -48,11 +48,12 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask
})

fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>", now.Hour())
settleTime, err := time.ParseInLocation("2006-01-02 15:04:05", today+subsidyBase.SettleTime, time.Local)
settleTime, err := time.ParseInLocation("2006-01-02 15:04:05", today+" "+subsidyBase.SettleTime+":00", time.Local)
if err != nil {
session.Rollback()
return
}
if isTask && (now.Hour() > 8) && now.After(settleTime) {
if isTask && (now.Hour() > 8 || now.Before(settleTime)) {
session.Rollback()
//TODO::结算时间 ~ 凌晨 8 点运行
return errors.New("非运行时间")


Laden…
Abbrechen
Speichern