1
This commit is contained in:
parent
a934578e63
commit
ccf2fe0c8e
@ -1,7 +1,7 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"id": 1001,
|
"id": 1001,
|
||||||
"diamond": 50,
|
"diamond": 100,
|
||||||
"price": 1,
|
"price": 1,
|
||||||
"max_buy_times": 9999
|
"max_buy_times": 9999
|
||||||
}
|
}
|
||||||
|
@ -40,10 +40,17 @@ func (ea *RechargeApi) RechargeList(c *gin.Context) {
|
|||||||
tmpmap["price"] = tb.GetPrice()
|
tmpmap["price"] = tb.GetPrice()
|
||||||
tmpmap["max_buy_times"] = tb.GetMaxBuyTimes()
|
tmpmap["max_buy_times"] = tb.GetMaxBuyTimes()
|
||||||
tmpmap["first_present_diamond"] = tb.GetFirstPresentDiamond()
|
tmpmap["first_present_diamond"] = tb.GetFirstPresentDiamond()
|
||||||
tmpmap["is_first_recharge"] = 1
|
tmpmap["is_first_recharge"] = 0
|
||||||
tmpmap["currency_list"] = []struct{
|
currencyList := []struct{
|
||||||
ErrMsg string `json:"errmsg"`
|
Name string `json:"name"`
|
||||||
|
Address string `json:"address"`
|
||||||
}{}
|
}{}
|
||||||
|
for _, currency := range currencysMeta {
|
||||||
|
p := q5.NewSliceElement(¤cyList)
|
||||||
|
p.Name = currency.GetCurrencyName()
|
||||||
|
p.Address = currency.GetContract().GetAddress()
|
||||||
|
}
|
||||||
|
tmpmap["currency_list"] = currencyList
|
||||||
|
|
||||||
rspObj.Rows = append(rspObj.Rows, tmpmap)
|
rspObj.Rows = append(rspObj.Rows, tmpmap)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user