1
This commit is contained in:
parent
6258ef646a
commit
efa8234cb5
@ -66,6 +66,19 @@ token_type <> ? AND last_lock_address = ? AND last_lock_time <= ? owner_address
|
|||||||
c.JSON(200, rspObj)
|
c.JSON(200, rspObj)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
nfts := []*jccommon.NftStacking{}
|
||||||
|
for ds.Next() {
|
||||||
|
p := new(jccommon.NftStacking)
|
||||||
|
p.NetId = q5.ToInt32(ds.GetByName("net_id"))
|
||||||
|
p.ContractAddress = ds.GetByName("contract_address")
|
||||||
|
p.TokenType = q5.ToInt32(ds.GetByName("token_type"))
|
||||||
|
p.TokenId = ds.GetByName("token_id")
|
||||||
|
p.ItemId = q5.ToInt32(ds.GetByName("item_id"))
|
||||||
|
p.Quality = q5.ToInt32(ds.GetByName("quality"))
|
||||||
|
q5.AppendSlice(&nfts, p)
|
||||||
|
}
|
||||||
|
rspObj.ContributionPoint = jccommon.CalcContributionScore(nfts)
|
||||||
|
c.JSON(200, rspObj)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user