|
@@ -48,11 +48,12 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>", now.Hour()) |
|
|
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 { |
|
|
if err != nil { |
|
|
|
|
|
session.Rollback() |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if isTask && (now.Hour() > 8) && now.After(settleTime) { |
|
|
|
|
|
|
|
|
if isTask && (now.Hour() > 8 || now.Before(settleTime)) { |
|
|
session.Rollback() |
|
|
session.Rollback() |
|
|
//TODO::结算时间 ~ 凌晨 8 点运行 |
|
|
//TODO::结算时间 ~ 凌晨 8 点运行 |
|
|
return errors.New("非运行时间") |
|
|
return errors.New("非运行时间") |
|
|