Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
1897d781c5
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      rule/consume_integral_settlement.go

+ 3
- 2
rule/consume_integral_settlement.go View File

@@ -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("非运行时间")


Loading…
Cancel
Save