1
This commit is contained in:
parent
6d03e9448f
commit
25edd3d477
@ -57,6 +57,7 @@ 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 {
|
||||||
|
if ds.Next() {
|
||||||
p := new(common.NftDto)
|
p := new(common.NftDto)
|
||||||
p.NetId = q5.ToInt32(ds.GetByName("net_id"))
|
p.NetId = q5.ToInt32(ds.GetByName("net_id"))
|
||||||
p.ContractAddress = ds.GetByName("contract_address")
|
p.ContractAddress = ds.GetByName("contract_address")
|
||||||
@ -65,6 +66,7 @@ func (this *ShopCartApi) List(c *gin.Context) {
|
|||||||
q5.DecodeJson(ds.GetByName("event_data"), &p.Payload)
|
q5.DecodeJson(ds.GetByName("event_data"), &p.Payload)
|
||||||
q5.AppendSlice(&nfts, p)
|
q5.AppendSlice(&nfts, p)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
if err1 != nil {
|
if err1 != nil {
|
||||||
rspObj.ErrCode = 500
|
rspObj.ErrCode = 500
|
||||||
|
Loading…
x
Reference in New Issue
Block a user