From b6a97a271dd0fdaa99e52f473f8c043034619258 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 7 Sep 2022 17:02:21 +0800 Subject: [PATCH] =?UTF-8?q?add=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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rule/block_star_chain_settlement.go b/rule/block_star_chain_settlement.go index 782d680..df461f0 100644 --- a/rule/block_star_chain_settlement.go +++ b/rule/block_star_chain_settlement.go @@ -38,6 +38,7 @@ func DailySettlementBlockStarChain(engine *xorm.Engine, mid string) (err error) session.Begin() now := time.Now() today := now.Format("2006-01-02") + fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>", now.Hour()) if now.Hour() > 8 || now.Hour() < 1 { //TODO::只在凌晨一点 ~ 凌晨 8 点运行 @@ -188,6 +189,7 @@ func DailySettlementBlockStarChain(engine *xorm.Engine, mid string) (err error) _ = session.Rollback() return errors.New("事务提交失败") } + fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>区块星链结束<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<") return nil }