|
|
@@ -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) |
|
|
|