shenjiachi 5 giorni fa
parent
commit
20ae8e0335
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. +6
    -1
      app/hdl/hdl_points_center.go

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

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



Caricamento…
Annulla
Salva