|
@@ -49,6 +49,14 @@ async function startCheck(concurrency) {
|
|
|
const randomPick = notDone[Math.floor(Math.random() * notDone.length)]
|
|
|
|
|
|
const client = new InitiaClient(account.mnemonic, true)
|
|
|
+ const gasGot = await client.gasGot()
|
|
|
+ if (!gasGot) {
|
|
|
+ await DBClient.instance.randomTask2.update({
|
|
|
+ where: { id: account.id },
|
|
|
+ data: { finish: -1 },
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
if (randomPick === 1) {
|
|
|
console.log(`task1`)
|
|
|
const bool = await client.newBridge2BlackWings()
|
|
@@ -118,4 +126,4 @@ async function startCheck(concurrency) {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-startCheck(200)
|
|
|
+startCheck(50)
|