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) {
|
||||
err1 = err
|
||||
if err == nil {
|
||||
p := new(common.NftDto)
|
||||
p.NetId = q5.ToInt32(ds.GetByName("net_id"))
|
||||
p.ContractAddress = ds.GetByName("contract_address")
|
||||
p.TokenId = ds.GetByName("token_id")
|
||||
p.Payload = map[string]interface{}{}
|
||||
q5.DecodeJson(ds.GetByName("event_data"), &p.Payload)
|
||||
q5.AppendSlice(&nfts, p)
|
||||
if ds.Next() {
|
||||
p := new(common.NftDto)
|
||||
p.NetId = q5.ToInt32(ds.GetByName("net_id"))
|
||||
p.ContractAddress = ds.GetByName("contract_address")
|
||||
p.TokenId = ds.GetByName("token_id")
|
||||
p.Payload = map[string]interface{}{}
|
||||
q5.DecodeJson(ds.GetByName("event_data"), &p.Payload)
|
||||
q5.AppendSlice(&nfts, p)
|
||||
}
|
||||
}
|
||||
})
|
||||
if err1 != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user