|
@@ -33,7 +33,7 @@ async function getTransfers(ctx) {
|
|
|
|
|
|
var temp_obj = { ...obj }
|
|
var temp_obj = { ...obj }
|
|
var index = 0
|
|
var index = 0
|
|
- // for (let index = 0; index < 20; index++) {
|
|
|
|
|
|
+ // for (let index = 0; index < 25; index++) {
|
|
await moralis.getTokenTransfers(obj).then((result) => {
|
|
await moralis.getTokenTransfers(obj).then((result) => {
|
|
logger.log('getTransfers response','index='+index, result)
|
|
logger.log('getTransfers response','index='+index, result)
|
|
ctx.body = result;
|
|
ctx.body = result;
|
|
@@ -70,8 +70,6 @@ async function getTransfers(ctx) {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
// }
|
|
// }
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -289,7 +287,14 @@ async function getWithdrawStatus(ctx) {
|
|
transferTimestamp: info.update_time,
|
|
transferTimestamp: info.update_time,
|
|
}, null)
|
|
}, null)
|
|
} else {
|
|
} else {
|
|
- ctx.body = utils.toJson(-1, null, info.errorMsg)
|
|
|
|
|
|
+ ctx.body = utils.toJson(0, {
|
|
|
|
+ withdrawId: info.withdraw_id,
|
|
|
|
+ withdrawStatus: info.withdraw_status,
|
|
|
|
+ withdrawHash: info.withdraw_hash,
|
|
|
|
+ chainId: info.chain_id,
|
|
|
|
+ transferTimestamp: info.update_time,
|
|
|
|
+ errorMsg:info.errorMsg
|
|
|
|
+ }, null)
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
ctx.body = utils.toJson(-1, null, obj.withdraw_id + ' id does not exist.')
|
|
ctx.body = utils.toJson(-1, null, obj.withdraw_id + ' id does not exist.')
|