1
This commit is contained in:
parent
d0dd50df99
commit
92e328f417
@ -20,13 +20,19 @@ type RechargeApi struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ea *RechargeApi) RechargeList(c *gin.Context) {
|
func (ea *RechargeApi) RechargeList(c *gin.Context) {
|
||||||
//netId := q5.ToInt64(c.Param("net_id"))
|
netId := q5.ToInt32(c.Param("net_id"))
|
||||||
rspObj := struct {
|
rspObj := struct {
|
||||||
ErrCode int32 `json:"errcode"`
|
ErrCode int32 `json:"errcode"`
|
||||||
ErrMsg string `json:"errmsg"`
|
ErrMsg string `json:"errmsg"`
|
||||||
Rows []interface{} `json:"rows"`
|
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 {
|
mt.Table.Recharge.Traverse(func(tb *mt.Recharge) bool {
|
||||||
tmpmap := map[string]interface{}{}
|
tmpmap := map[string]interface{}{}
|
||||||
tmpmap["goods_id"] = tb.GetId()
|
tmpmap["goods_id"] = tb.GetId()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user