1
This commit is contained in:
parent
abed9dfe49
commit
889d89906c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user