|
@@ -277,22 +277,6 @@ async function getWithdrawStatus(ctx) {
|
|
|
var info = await withdraw_db.queryWithdrawInfoFromWithdrawId(obj.withdrawId)
|
|
|
logger.log('getWithdrawStatus info', JSON.stringify(info))
|
|
|
if (info) {
|
|
|
- // try {
|
|
|
- // var ret = await moralis.getTokenTransfers({
|
|
|
- // transaction_hash: info.withdraw_hash,
|
|
|
- // chain: utils.getChainIdToName(info.chain_id)
|
|
|
- // })
|
|
|
- // logger.log('getWithdrawStatus getTokenTransfers', ret)
|
|
|
- // info.block_timestamp = ''
|
|
|
- // if (ret) {
|
|
|
- // if (typeof ret === 'string') {
|
|
|
- // ret = JSON.parse(ret)
|
|
|
- // info.block_timestamp = ret.data.result[0].block_timestamp
|
|
|
- // }
|
|
|
- // }
|
|
|
- // } catch (error) {
|
|
|
- // logger.error('getWithdrawStatus getTokenTransfers error', error)
|
|
|
- // }
|
|
|
if (info.withdraw_status != 3) {
|
|
|
ctx.body = utils.toJson(0, {
|
|
|
withdrawId: info.withdraw_id,
|