This commit is contained in:
aozhiwei 2024-08-16 18:45:09 +08:00
parent a934578e63
commit ccf2fe0c8e
2 changed files with 11 additions and 4 deletions

View File

@ -1,7 +1,7 @@
[
{
"id": 1001,
"diamond": 50,
"diamond": 100,
"price": 1,
"max_buy_times": 9999
}

View File

@ -40,10 +40,17 @@ func (ea *RechargeApi) RechargeList(c *gin.Context) {
tmpmap["price"] = tb.GetPrice()
tmpmap["max_buy_times"] = tb.GetMaxBuyTimes()
tmpmap["first_present_diamond"] = tb.GetFirstPresentDiamond()
tmpmap["is_first_recharge"] = 1
tmpmap["currency_list"] = []struct{
ErrMsg string `json:"errmsg"`
tmpmap["is_first_recharge"] = 0
currencyList := []struct{
Name string `json:"name"`
Address string `json:"address"`
}{}
for _, currency := range currencysMeta {
p := q5.NewSliceElement(&currencyList)
p.Name = currency.GetCurrencyName()
p.Address = currency.GetContract().GetAddress()
}
tmpmap["currency_list"] = currencyList
rspObj.Rows = append(rspObj.Rows, tmpmap)