|
@@ -188,6 +188,10 @@ async function getAccountBalances(options) {
|
|
|
result = await Moralis.Web3API.account.getTokenBalances(options);
|
|
|
logger.log('getTokenBalances=', result);
|
|
|
}
|
|
|
+ if(tryCount < 4)
|
|
|
+ {
|
|
|
+ logger.error('getBalances succeed:', JSON.stringify(options), " 已重试:" + tryCount +"次")
|
|
|
+ }
|
|
|
break
|
|
|
} catch (error) {
|
|
|
if (tryCount == 1) {
|
|
@@ -197,7 +201,7 @@ async function getAccountBalances(options) {
|
|
|
tryCount -= 1;
|
|
|
await utils.sleep(delay)
|
|
|
delay += interval
|
|
|
- logger.error('getBalances error:', JSON.stringify(options), "重试:" + tryCount +"次")
|
|
|
+
|
|
|
|
|
|
}
|
|
|
} while (tryCount >= 1);
|