|
@@ -157,6 +157,12 @@ func MemberCenterGetBasic(c *gin.Context) { |
|
|
ratio := decimal.NewFromInt(1).Div(nowPrice).StringFixed(16) |
|
|
ratio := decimal.NewFromInt(1).Div(nowPrice).StringFixed(16) |
|
|
ratioStr := fmt.Sprintf("%s:1", ratio) |
|
|
ratioStr := fmt.Sprintf("%s:1", ratio) |
|
|
|
|
|
|
|
|
|
|
|
contributionValueDecimal, err := decimal.NewFromString(contributionValue.Amount) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
e.OutErr(c, e.ERR_UNMARSHAL, nil) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
resp := md.MemberCenterGetBasicResp{ |
|
|
resp := md.MemberCenterGetBasicResp{ |
|
|
Nickname: user.Nickname, |
|
|
Nickname: user.Nickname, |
|
|
LevelName: level.LevelName, |
|
|
LevelName: level.LevelName, |
|
@@ -164,7 +170,7 @@ func MemberCenterGetBasic(c *gin.Context) { |
|
|
EggScore: utils.Float64ToStr(score), |
|
|
EggScore: utils.Float64ToStr(score), |
|
|
EggEnergy: utils.Float64ToStr(eggEnergy), |
|
|
EggEnergy: utils.Float64ToStr(eggEnergy), |
|
|
EggEnergyValue: eggEnergyValue.String(), |
|
|
EggEnergyValue: eggEnergyValue.String(), |
|
|
ContributionValue: contributionValue.Amount, |
|
|
|
|
|
|
|
|
ContributionValue: contributionValueDecimal.StringFixed(0), |
|
|
Date: "25", |
|
|
Date: "25", |
|
|
Ratio: ratioStr, |
|
|
Ratio: ratioStr, |
|
|
Amount: wallet.Amount, |
|
|
Amount: wallet.Amount, |
|
|