Browse Source

update

master
shenjiachi 5 days ago
parent
commit
20ae8e0335
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      app/hdl/hdl_points_center.go

+ 6
- 1
app/hdl/hdl_points_center.go View File

@@ -920,8 +920,13 @@ func PointsCenterCalcExchange(c *gin.Context) {
e.OutErr(c, e.ERR, err.Error()) e.OutErr(c, e.ERR, err.Error())
return return
} }
amountDecimal, err := decimal.NewFromString(exchangeResp.GetEggEnergyAmount)
if err != nil {
e.OutErr(c, e.ERR, err.Error())
return
}
resp := md.PointsCenterCalcExchangeResp{ resp := md.PointsCenterCalcExchangeResp{
Value: exchangeResp.GetEggEnergyAmount,
Value: amountDecimal.StringFixed(2),
Fee: feeDecimal.StringFixed(2), Fee: feeDecimal.StringFixed(2),
} }




Loading…
Cancel
Save