This commit is contained in:
aozhiwei 2024-06-22 14:55:07 +08:00
parent def608e0b0
commit 40061d2d79
2 changed files with 5 additions and 2 deletions

View File

@ -65,7 +65,7 @@ func GetHeroByTokenId(tokenId string, itemId *int32, heroQuality *int32) bool {
return result
}
func GetGoldBullionTokenId(netId int32, tokenId string, itemId *int32) bool {
func GetGoldBullionByNetIdTokenId(netId int32, tokenId string, itemId *int32) bool {
result := false
f5.GetGoStyleDb().OrmSelectOne(
constant.GAME_DB,

View File

@ -107,7 +107,10 @@ func (this* repairNft) repairNft(ds *f5.DataSet) bool {
}
case jccommon.NFT_TYPE_GOLD_BULLION:
{
var itemId int32
if service.GetGoldBullionByNetIdTokenId(netId, tokenId, &itemId) {
this.updateNftItemId(netId, contractAddress, tokenId, itemId)
}
}
}
return true