|
@@ -12,6 +12,7 @@ import ( |
|
|
es2 "code.fnuoos.com/EggPlanet/egg_system_rules.git/utils/es" |
|
|
es2 "code.fnuoos.com/EggPlanet/egg_system_rules.git/utils/es" |
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_es.git/es" |
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_es.git/es" |
|
|
"encoding/json" |
|
|
"encoding/json" |
|
|
|
|
|
"fmt" |
|
|
"github.com/gin-gonic/gin" |
|
|
"github.com/gin-gonic/gin" |
|
|
"github.com/olivere/elastic/v7" |
|
|
"github.com/olivere/elastic/v7" |
|
|
"github.com/shopspring/decimal" |
|
|
"github.com/shopspring/decimal" |
|
@@ -153,6 +154,8 @@ func MemberCenterGetBasic(c *gin.Context) { |
|
|
//} |
|
|
//} |
|
|
score = doc.ScoreValue |
|
|
score = doc.ScoreValue |
|
|
} |
|
|
} |
|
|
|
|
|
ratio := decimal.NewFromInt(1).Div(nowPrice).StringFixed(0) |
|
|
|
|
|
ratioStr := fmt.Sprintf("%s:1", ratio) |
|
|
|
|
|
|
|
|
resp := md.MemberCenterGetBasicResp{ |
|
|
resp := md.MemberCenterGetBasicResp{ |
|
|
Nickname: user.Nickname, |
|
|
Nickname: user.Nickname, |
|
@@ -162,8 +165,8 @@ func MemberCenterGetBasic(c *gin.Context) { |
|
|
EggEnergy: utils.Float64ToStr(eggEnergy), |
|
|
EggEnergy: utils.Float64ToStr(eggEnergy), |
|
|
EggEnergyValue: eggEnergyValue.String(), |
|
|
EggEnergyValue: eggEnergyValue.String(), |
|
|
ContributionValue: contributionValue.Amount, |
|
|
ContributionValue: contributionValue.Amount, |
|
|
Date: "29", |
|
|
|
|
|
Ratio: "1:1000", |
|
|
|
|
|
|
|
|
Date: "25", |
|
|
|
|
|
Ratio: ratioStr, |
|
|
Amount: wallet.Amount, |
|
|
Amount: wallet.Amount, |
|
|
Id: utils.Int64ToStr(user.Id), |
|
|
Id: utils.Int64ToStr(user.Id), |
|
|
Phone: user.Phone, |
|
|
Phone: user.Phone, |
|
|