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 }