From 6dfe5e45708a387e4d3a91d103b018ab53c5f929 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Thu, 23 May 2024 16:14:23 +0800 Subject: [PATCH] update --- rule/one_circles/one_circles_auto_release_green_energy.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rule/one_circles/one_circles_auto_release_green_energy.go b/rule/one_circles/one_circles_auto_release_green_energy.go index cd0ff96..ddd05d9 100644 --- a/rule/one_circles/one_circles_auto_release_green_energy.go +++ b/rule/one_circles/one_circles_auto_release_green_energy.go @@ -82,6 +82,11 @@ func AutoReleaseExchangeGreenEnergy(engine *xorm.Engine, masterId string) (err e Uid: v.Uid, Amount: settlementQuantityAmount, }) + if err != nil { + _ = session.Rollback() + fmt.Println("err:::::22222", err) + continue + } //4.2给相应的用户减少个人的绿色积分(结算数量) err = rule.DealUserCoin(session, md.DealUserCoinReq{