|
@@ -399,9 +399,19 @@ func GetEggCoreDataList(c *gin.Context) { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
settingDb := implement.NewEggEnergyBasicSettingDb(db.Db) |
|
|
|
|
|
setting, err := settingDb.EggEnergyBasicSettingGetOne() |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
e.OutErr(c, e.ERR_DB_ORM, nil) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
var userHoldTotalNums float64 |
|
|
var userHoldTotalNums float64 |
|
|
for _, result := range results { |
|
|
for _, result := range results { |
|
|
userHoldTotalNums += utils.StrToFloat64(result["total"]) |
|
|
|
|
|
|
|
|
switch utils.StrToInt(result["coin_id"]) { |
|
|
|
|
|
case setting.PersonEggEnergyCoinId, setting.TeamEggEnergyCoinId, setting.PersonEggPointsCoinId, setting.TeamEggPointsCoinId: |
|
|
|
|
|
userHoldTotalNums += utils.StrToFloat64(result["total"]) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
resp := md.GetEggCoreDataListResp{ |
|
|
resp := md.GetEggCoreDataListResp{ |
|
|