瀏覽代碼

update

master
shenjiachi 1 周之前
父節點
當前提交
e4178b09bc
共有 1 個檔案被更改,包括 7 行新增1 行删除
  1. +7
    -1
      app/hdl/hdl_member_center.go

+ 7
- 1
app/hdl/hdl_member_center.go 查看文件

@@ -157,6 +157,12 @@ func MemberCenterGetBasic(c *gin.Context) {
ratio := decimal.NewFromInt(1).Div(nowPrice).StringFixed(16)
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{
Nickname: user.Nickname,
LevelName: level.LevelName,
@@ -164,7 +170,7 @@ func MemberCenterGetBasic(c *gin.Context) {
EggScore: utils.Float64ToStr(score),
EggEnergy: utils.Float64ToStr(eggEnergy),
EggEnergyValue: eggEnergyValue.String(),
ContributionValue: contributionValue.Amount,
ContributionValue: contributionValueDecimal.StringFixed(0),
Date: "25",
Ratio: ratioStr,
Amount: wallet.Amount,


Loading…
取消
儲存