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'); session.rspErr(101, 'item_id param error');
return; return;
} }
if (itemMeta.getNftType() != tokenType) { if (tokenType == bcconst.BC_NFT_NORMAL_HERO) {
session.rspErr(101, 'item_id param error'); if (itemMeta.getNftType() != bcconst.BC_NFT_HERO) {
return; 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)) { itemMeta.getNftType() == bcconst.BC_NFT_GOLD_BULLION)) {
session.rspErr(101, 'token_type param error'); session.rspErr(101, 'token_type param error');
return; return;