|
|
@ -33,6 +33,8 @@ export default class Operation { |
|
|
|
) |
|
|
|
) |
|
|
|
return {} |
|
|
|
return {} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log('$$$$$$$$$$$') |
|
|
|
|
|
|
|
|
|
|
|
await async.each(this.usersList, async ({nationalId ,password}, cb) => { |
|
|
|
await async.each(this.usersList, async ({nationalId ,password}, cb) => { |
|
|
|
sleep(Math.floor(Math.random() * 100 / 2) * 60 * 1000) |
|
|
|
sleep(Math.floor(Math.random() * 100 / 2) * 60 * 1000) |
|
|
|
.then(async _ => { |
|
|
|
.then(async _ => { |
|
|
@ -56,6 +58,7 @@ export default class Operation { |
|
|
|
|
|
|
|
|
|
|
|
await async.each(this.usersList, async ({nationalId ,password}, cb) => { |
|
|
|
await async.each(this.usersList, async ({nationalId ,password}, cb) => { |
|
|
|
const timer = Math.floor(Math.random() * 100 / 2) * 60 * 1000 |
|
|
|
const timer = Math.floor(Math.random() * 100 / 2) * 60 * 1000 |
|
|
|
|
|
|
|
console.log('%%%%%%%%%%%') |
|
|
|
console.log('$$$$$$$$$$$', timer) |
|
|
|
console.log('$$$$$$$$$$$', timer) |
|
|
|
sleep(timer) |
|
|
|
sleep(timer) |
|
|
|
.then(async _ => { |
|
|
|
.then(async _ => { |
|
|
|