Pārlūkot izejas kodu

update 区块星链

tags/v3.1.5
DengBiao pirms 2 gadiem
vecāks
revīzija
d412f11d8d
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      rule/block_star_chain_settlement.go

+ 2
- 1
rule/block_star_chain_settlement.go Parādīt failu

@@ -40,7 +40,8 @@ func DailySettlementBlockStarChain(engine *xorm.Engine, mid string, isTask bool)
today := now.Format("2006-01-02")

fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>", now.Hour())
if isTask && (now.Hour() > 8 || now.Hour() < 1) {
//if isTask && (now.Hour() > 8 || now.Hour() < 1) {
if isTask && (now.Hour() > 8) {
//TODO::只在凌晨一点 ~ 凌晨 8 点运行
return errors.New("非运行时间")
}


Notiek ielāde…
Atcelt
Saglabāt