This commit is contained in:
aozhiwei 2024-07-03 13:31:53 +08:00
parent 81716ef80d
commit 6b24156f25
2 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,7 @@ class AirDrop extends basewrap.BaseWrap {
throw 'airdrop token_id error';
}
tokenIdHash[this['token_id']] = this;
console.log(this);
}
static getAirDropByTokenId(tokenId) {

View File

@ -164,7 +164,9 @@ async function init() {
if (utils.hasKey(airDropTokenIdHash, airDropMeta['token_id'])) {
throw new Error('airdrop token_id error');
}
airDropTokenIdHash[airDropMeta['token_id']] = airDropMeta;
if (airDropMeta.quality <= 1) {
throw new Error('airdrop token_id error2');
}
}
);
}