瀏覽代碼

update

master
shenjiachi 11 小時之前
父節點
當前提交
0e3ff8c91a
共有 1 個檔案被更改,包括 11 行新增1 行删除
  1. +11
    -1
      app/hdl/institutional_management/egg_energy/hdl_basic.go

+ 11
- 1
app/hdl/institutional_management/egg_energy/hdl_basic.go 查看文件

@@ -399,9 +399,19 @@ func GetEggCoreDataList(c *gin.Context) {
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
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{


Loading…
取消
儲存