瀏覽代碼

更新

master
huangjiajun 1 年之前
父節點
當前提交
1897d781c5
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      rule/consume_integral_settlement.go

+ 3
- 2
rule/consume_integral_settlement.go 查看文件

@@ -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…
取消
儲存