1
This commit is contained in:
parent
740df075f2
commit
b2f1cf3ca1
@ -265,23 +265,11 @@ func (this* repairNft) repairChainActivity(ds *f5.DataSet) bool {
|
||||
netId := q5.ToInt32(ds.GetByName("net_id"))
|
||||
contractAddress := ds.GetByName("contract_address")
|
||||
tokenId := ds.GetByName("token_id")
|
||||
switch q5.ToInt32(ds.GetByName("token_type")) {
|
||||
case jccommon.NFT_TYPE_CFHERO:
|
||||
case jccommon.NFT_TYPE_CFHERO_NORMAL:
|
||||
{
|
||||
var itemId int32
|
||||
var quality int32
|
||||
if service.GetHeroByTokenId(tokenId, &itemId, &quality) {
|
||||
this.updateSale(netId, contractAddress, tokenId, itemId, quality)
|
||||
}
|
||||
}
|
||||
case jccommon.NFT_TYPE_GOLD_BULLION:
|
||||
{
|
||||
var itemId int32
|
||||
if service.GetGoldBullionByNetIdTokenId(netId, tokenId, &itemId) {
|
||||
this.updateSale(netId, contractAddress, tokenId, itemId, 0)
|
||||
}
|
||||
}
|
||||
|
||||
var itemId int32
|
||||
var quality int32
|
||||
if service.GetHeroByTokenId(tokenId, &itemId, &quality) {
|
||||
this.updateSale(netId, contractAddress, tokenId, itemId, quality)
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user