diff --git a/server/marketserver/cache/cachemgr.go b/server/marketserver/cache/cachemgr.go index 86a95045..1aeedcd8 100644 --- a/server/marketserver/cache/cachemgr.go +++ b/server/marketserver/cache/cachemgr.go @@ -139,14 +139,19 @@ func (this *cacheMgr) batchGetNfts(nfts []*common.NftDto) { } else { continue } - this.addNft(netId, contractAddress, tokenId) + this.addNft(netId, contractAddress, tokenId, val) } } }) } -func (this *cacheMgr) addNft(netId int32, contractAddress string, tokenId string) { +func (this *cacheMgr) addNft(netId int32, contractAddress string, tokenId string, + data map[string]interface{}) { dto := new(common.NftDto) + dto.NetId = netId + dto.ContractAddress = contractAddress + dto.TokenId = tokenId p := newNft() + p.jsonData = data this.nftHash.Store(dto.GetKey(), p) }