From 61a79ee55918d63734dc1e2c098868a8c90751c6 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 5 Sep 2022 21:27:05 +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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rule/block_star_chain_settlement.go b/rule/block_star_chain_settlement.go index 13c1362..efa272b 100644 --- a/rule/block_star_chain_settlement.go +++ b/rule/block_star_chain_settlement.go @@ -709,5 +709,11 @@ func DealLotteryDraw(session *xorm.Session, req md.DealLotteryDrawReq) (err erro _ = session.Rollback() return err } + err = session.Commit() + if err != nil { + _ = session.Rollback() + return errors.New("事务提交失败") + } + return nil }