From 2c0e1b1d9a7aea9748bd806cb5cee83b50f6e53f Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Sun, 11 Sep 2022 20:36:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?update=20=E5=8C=BA=E5=9D=97=E6=98=9F?= =?UTF-8?q?=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/block_star_chain_settlement.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rule/block_star_chain_settlement.go b/rule/block_star_chain_settlement.go index 5e984ec..147878e 100644 --- a/rule/block_star_chain_settlement.go +++ b/rule/block_star_chain_settlement.go @@ -546,6 +546,7 @@ func DealDestroyCoin(session *xorm.Session, kind int, amount float64, title stri blockStarChainFlow.Direction = md.FlowDirectionExpenditure blockStarChainFlow.Kind = kind blockStarChainFlow.Title = title + blockStarChainFlow.Amount = zhios_order_relate_utils.Float64ToStrPrec10(amount) blockStarChainFlow.CreateTime = now switch kind { case int(enum.SystemDestroy): From d412f11d8d023e31984a8d924a2a030a603d9f9b Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 12 Sep 2022 22:24:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?update=20=E5=8C=BA=E5=9D=97=E6=98=9F?= =?UTF-8?q?=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/block_star_chain_settlement.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rule/block_star_chain_settlement.go b/rule/block_star_chain_settlement.go index 147878e..e8b95e5 100644 --- a/rule/block_star_chain_settlement.go +++ b/rule/block_star_chain_settlement.go @@ -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("非运行时间") }