This commit is contained in:
aozhiwei 2024-08-07 17:47:34 +08:00
parent d0dd50df99
commit 92e328f417

View File

@ -20,13 +20,19 @@ type RechargeApi struct {
}
func (ea *RechargeApi) RechargeList(c *gin.Context) {
//netId := q5.ToInt64(c.Param("net_id"))
netId := q5.ToInt32(c.Param("net_id"))
rspObj := struct {
ErrCode int32 `json:"errcode"`
ErrMsg string `json:"errmsg"`
Rows []interface{} `json:"rows"`
}{}
currencyMeta := mt.Table.RechargeCurrency.Get(netId)
if currencyMeta == nil {
f5.RspErr(c, 2, "server internal error")
return
}
mt.Table.Recharge.Traverse(func(tb *mt.Recharge) bool {
tmpmap := map[string]interface{}{}
tmpmap["goods_id"] = tb.GetId()