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"))
|
netId := q5.ToInt32(ds.GetByName("net_id"))
|
||||||
contractAddress := ds.GetByName("contract_address")
|
contractAddress := ds.GetByName("contract_address")
|
||||||
tokenId := ds.GetByName("token_id")
|
tokenId := ds.GetByName("token_id")
|
||||||
switch q5.ToInt32(ds.GetByName("token_type")) {
|
|
||||||
case jccommon.NFT_TYPE_CFHERO:
|
var itemId int32
|
||||||
case jccommon.NFT_TYPE_CFHERO_NORMAL:
|
var quality int32
|
||||||
{
|
if service.GetHeroByTokenId(tokenId, &itemId, &quality) {
|
||||||
var itemId int32
|
this.updateSale(netId, contractAddress, tokenId, itemId, quality)
|
||||||
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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user