From 3fe1edb00a330650bfa12cf3840190e159ef7c00 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Mon, 23 Dec 2024 18:33:08 +0800 Subject: [PATCH] update --- app/hdl/hdl_points_center.go | 7 ++++++- go.mod | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/hdl/hdl_points_center.go b/app/hdl/hdl_points_center.go index b65ea51..228173e 100644 --- a/app/hdl/hdl_points_center.go +++ b/app/hdl/hdl_points_center.go @@ -915,9 +915,14 @@ func PointsCenterCalcExchange(c *gin.Context) { return } + feeDecimal, err := decimal.NewFromString(exchangeResp.AmountFee) + if err != nil { + e.OutErr(c, e.ERR, err.Error()) + return + } resp := md.PointsCenterCalcExchangeResp{ Value: exchangeResp.GetEggEnergyAmount, - Fee: exchangeResp.AmountFee, + Fee: feeDecimal.StringFixed(2), } e.OutSuc(c, resp, nil) diff --git a/go.mod b/go.mod index 86c5600..81e1b1e 100644 --- a/go.mod +++ b/go.mod @@ -34,7 +34,7 @@ require ( require ( code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241221164231-20952e894d1d - code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241222141934-5562d8e0231c + code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241223102933-953e3394de41 code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible