From ebb7a03c2e91685e55dd5f5ceab90b7b4f7d538c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 29 Jul 2024 11:44:04 +0800 Subject: [PATCH] 1 --- server/jccommon/types.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/jccommon/types.go b/server/jccommon/types.go index b248b822..7316cbee 100644 --- a/server/jccommon/types.go +++ b/server/jccommon/types.go @@ -1,6 +1,7 @@ package jccommon import ( + "q5" "f5" ) @@ -114,7 +115,11 @@ type NftIdentityAndExtData struct { } func (this *NftIdentityAndExtData) LoadFromDb(ds *f5.DataSet) { - + this.NetId = q5.ToInt32(ds.GetByName("net_id")) + this.ContractAddress = ds.GetByName("contract_address") + this.TokenId = ds.GetByName("token_id") + this.ItemId = q5.ToInt32(ds.GetByName("item_id")) + this.Quality = q5.ToInt32(ds.GetByName("quality")) } func NewNftStackingPo() *NftStackingPo {