This commit is contained in:
aozhiwei 2024-08-27 16:57:40 +08:00
parent abed9dfe49
commit 889d89906c

View File

@ -43,11 +43,18 @@ async function activate721Nft(session) {
session.rspErr(101, 'item_id param error');
return;
}
if (itemMeta.getNftType() != tokenType) {
session.rspErr(101, 'item_id param error');
return;
if (tokenType == bcconst.BC_NFT_NORMAL_HERO) {
if (itemMeta.getNftType() != bcconst.BC_NFT_HERO) {
session.rspErr(101, 'item_id param error');
return;
}
} else {
if (itemMeta.getNftType() != tokenType) {
session.rspErr(101, 'item_id param error');
return;
}
}
if (!(itemMeta.getNftType() == bcconst.BC_NFT_NORMAL_HERO ||
if (!(itemMeta.getNftType() == bcconst.BC_NFT_HERO ||
itemMeta.getNftType() == bcconst.BC_NFT_GOLD_BULLION)) {
session.rspErr(101, 'token_type param error');
return;