From c86db27074a4cac6cdb2882fddd2add87d5c873e Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 14 Sep 2022 12:55:16 +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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rule/block_star_chain_settlement.go b/rule/block_star_chain_settlement.go index dcc4d79..c87b36b 100644 --- a/rule/block_star_chain_settlement.go +++ b/rule/block_star_chain_settlement.go @@ -737,14 +737,14 @@ func DealDestroyCoin(session *xorm.Session, kind int, amount float64, title stri chain.TotalPublishCoin = blockStarChainFlow.AfterTotalPublishCoin chain.TotalDestroyCoin = blockStarChainFlow.AfterTotalDestroyCoin //更新 `block_star_chain` 表 - updateAffected, err := db.BlockStarChainUpdate(session, chain.Id, chain) + _, err := db.BlockStarChainUpdate(session, chain.Id, chain) if err != nil { return err } - if updateAffected == 0 { - err = errors.New("更新 block_star_chain 记录失败") - return err - } + //if updateAffected == 0 { + // err = errors.New("更新 block_star_chain 记录失败") + // return err + //} //插入 `block_star_chain_flow` 记录 _, err = db.BlockStarChainFlowInsert(session, &blockStarChainFlow)