|
@@ -465,7 +465,7 @@ func ExchangeEnergy(c *gin.Context) { |
|
|
e.OutErr(c, e.ERR_UNMARSHAL, err.Error()) |
|
|
e.OutErr(c, e.ERR_UNMARSHAL, err.Error()) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
amount, _ := energyAmount.Div(nowPrice).Float64() |
|
|
|
|
|
|
|
|
amount, _ := energyAmount.Mul(nowPrice).Float64() |
|
|
|
|
|
|
|
|
// 3. 获取用户蛋蛋能量余额 |
|
|
// 3. 获取用户蛋蛋能量余额 |
|
|
eggEnergyAmount, err := rule.GetUserCoinAmount(session, coinID, user.Id) |
|
|
eggEnergyAmount, err := rule.GetUserCoinAmount(session, coinID, user.Id) |
|
|