nft 合作
This commit is contained in:
parent
efa0f668d6
commit
3d5cfc34ed
@ -22,8 +22,8 @@ let errmsg = err
|
||||
errmsg = `Operation timed out. Please retry.`
|
||||
} else if(errmsg.indexOf('chest already opened') > -1) {
|
||||
errmsg = 'chest already opened'
|
||||
// } else if(errmsg.indexOf('chest already opened') > -1) {
|
||||
// errmsg = 'Transaction failed please try again'
|
||||
} else if(errmsg.indexOf('check error: not found guild') > -1) {
|
||||
errmsg = 'Transaction failed please try again'
|
||||
}
|
||||
|
||||
const _confirm = new iErrorMessage({
|
||||
|
@ -1386,8 +1386,20 @@ export default {
|
||||
|
||||
// 领取NFT holder 奖励
|
||||
async chickNftClaim(contract) {
|
||||
let res = await apiClaimNft(contract)
|
||||
console.log('contract---------------------------------',res)
|
||||
try {
|
||||
let { errcode, errmsg, data } = await apiClaimNft(contract);
|
||||
if (!errcode) {
|
||||
this.exploreAwardDialog(data)
|
||||
localStorage.removeItem(storeageKey);
|
||||
clearInterval(serTimeId);
|
||||
} else if (errcode !== 14) {
|
||||
// 状态不是等待链上确认的, 都提示错误
|
||||
this.$showErr(errmsg)
|
||||
clearInterval(serTimeId);
|
||||
}
|
||||
} catch (err) {
|
||||
this.$message.error(`claim partner reward error: ${err}`);
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user