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{