1
This commit is contained in:
parent
6d03e9448f
commit
25edd3d477
@ -57,13 +57,15 @@ func (this *ShopCartApi) List(c *gin.Context) {
|
|||||||
func (err error, ds* f5.DataSet) {
|
func (err error, ds* f5.DataSet) {
|
||||||
err1 = err
|
err1 = err
|
||||||
if err == nil {
|
if err == nil {
|
||||||
p := new(common.NftDto)
|
if ds.Next() {
|
||||||
p.NetId = q5.ToInt32(ds.GetByName("net_id"))
|
p := new(common.NftDto)
|
||||||
p.ContractAddress = ds.GetByName("contract_address")
|
p.NetId = q5.ToInt32(ds.GetByName("net_id"))
|
||||||
p.TokenId = ds.GetByName("token_id")
|
p.ContractAddress = ds.GetByName("contract_address")
|
||||||
p.Payload = map[string]interface{}{}
|
p.TokenId = ds.GetByName("token_id")
|
||||||
q5.DecodeJson(ds.GetByName("event_data"), &p.Payload)
|
p.Payload = map[string]interface{}{}
|
||||||
q5.AppendSlice(&nfts, p)
|
q5.DecodeJson(ds.GetByName("event_data"), &p.Payload)
|
||||||
|
q5.AppendSlice(&nfts, p)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if err1 != nil {
|
if err1 != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user