shenjiachi пре 1 недеља
родитељ
комит
a1dc6bee92
1 измењених фајлова са 5 додато и 2 уклоњено
  1. +5
    -2
      app/hdl/hdl_member_center.go

+ 5
- 2
app/hdl/hdl_member_center.go Прегледај датотеку

@@ -12,6 +12,7 @@ import (
es2 "code.fnuoos.com/EggPlanet/egg_system_rules.git/utils/es"
"code.fnuoos.com/go_rely_warehouse/zyos_go_es.git/es"
"encoding/json"
"fmt"
"github.com/gin-gonic/gin"
"github.com/olivere/elastic/v7"
"github.com/shopspring/decimal"
@@ -153,6 +154,8 @@ func MemberCenterGetBasic(c *gin.Context) {
//}
score = doc.ScoreValue
}
ratio := decimal.NewFromInt(1).Div(nowPrice).StringFixed(0)
ratioStr := fmt.Sprintf("%s:1", ratio)

resp := md.MemberCenterGetBasicResp{
Nickname: user.Nickname,
@@ -162,8 +165,8 @@ func MemberCenterGetBasic(c *gin.Context) {
EggEnergy: utils.Float64ToStr(eggEnergy),
EggEnergyValue: eggEnergyValue.String(),
ContributionValue: contributionValue.Amount,
Date: "29",
Ratio: "1:1000",
Date: "25",
Ratio: ratioStr,
Amount: wallet.Amount,
Id: utils.Int64ToStr(user.Id),
Phone: user.Phone,


Loading…
Откажи
Сачувај