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');
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user