From 9e83a94dcafe127bd1896890f9ea0cc654b7cd30 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Thu, 8 Sep 2022 15:12:19 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=8C=BA=E5=9D=97=E6=98=9F=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/block_star_chain_settlement.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rule/block_star_chain_settlement.go b/rule/block_star_chain_settlement.go index 1270cdd..ea990be 100644 --- a/rule/block_star_chain_settlement.go +++ b/rule/block_star_chain_settlement.go @@ -27,7 +27,7 @@ func Init(redisAddr string) (err error) { } // DailySettlementBlockStarChain 每日结算“区块星链” -func DailySettlementBlockStarChain(engine *xorm.Engine, mid string) (err error) { +func DailySettlementBlockStarChain(engine *xorm.Engine, mid string, isTask bool) (err error) { session := engine.NewSession() defer func() { session.Close() @@ -40,7 +40,7 @@ func DailySettlementBlockStarChain(engine *xorm.Engine, mid string) (err error) today := now.Format("2006-01-02") fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>", now.Hour()) - if mid != "666666" && (now.Hour() > 8 || now.Hour() < 1) { + if isTask && (now.Hour() > 8 || now.Hour() < 1) { //TODO::只在凌晨一点 ~ 凌晨 8 点运行 return errors.New("非运行时间") }