1
This commit is contained in:
parent
81716ef80d
commit
6b24156f25
@ -12,6 +12,7 @@ class AirDrop extends basewrap.BaseWrap {
|
|||||||
throw 'airdrop token_id error';
|
throw 'airdrop token_id error';
|
||||||
}
|
}
|
||||||
tokenIdHash[this['token_id']] = this;
|
tokenIdHash[this['token_id']] = this;
|
||||||
|
console.log(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
static getAirDropByTokenId(tokenId) {
|
static getAirDropByTokenId(tokenId) {
|
||||||
|
@ -164,7 +164,9 @@ async function init() {
|
|||||||
if (utils.hasKey(airDropTokenIdHash, airDropMeta['token_id'])) {
|
if (utils.hasKey(airDropTokenIdHash, airDropMeta['token_id'])) {
|
||||||
throw new Error('airdrop token_id error');
|
throw new Error('airdrop token_id error');
|
||||||
}
|
}
|
||||||
airDropTokenIdHash[airDropMeta['token_id']] = airDropMeta;
|
if (airDropMeta.quality <= 1) {
|
||||||
|
throw new Error('airdrop token_id error2');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user