1
This commit is contained in:
parent
6d32241f85
commit
79260bcbf7
@ -23,21 +23,8 @@ func (ea *RechargeApi) RechargeList(c *gin.Context) {
|
||||
rspObj := struct {
|
||||
ErrCode int32 `json:"errcode"`
|
||||
ErrMsg string `json:"errmsg"`
|
||||
CurrencyName string `json:"currency_name"`
|
||||
CurrencyAddress string `json:"currency_address"`
|
||||
Rows []interface{} `json:"rows"`
|
||||
}{}
|
||||
netId := q5.ToInt32(c.DefaultQuery("net_id", "0"))
|
||||
currencyMeta := mt.Table.RechargeCurrency.Get(netId)
|
||||
if currencyMeta == nil {
|
||||
f5.RspErr(c, 2, "server internal error")
|
||||
return
|
||||
}
|
||||
currencyContractMeta := mt.Table.Contract.GetByNetIdName(netId, currencyMeta.GetCurrencyName())
|
||||
if currencyContractMeta == nil {
|
||||
f5.RspErr(c, 2, "server internal error")
|
||||
return
|
||||
}
|
||||
|
||||
mt.Table.Recharge.RawMetaTable.Traverse(func(tb *mt.Recharge) bool {
|
||||
tmpmap := map[string]interface{}{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user