Created
October 31, 2018 17:37
-
-
Save hmpmarketing/a7bbb106529f5ceaaea38e8bdb88b1b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isAcc = await page.evaluate(async (domain,account_id,time) => { | |
response = await fetch(`${domain}/api/p/a?account_id=${account_id}&timer=${time}`,{ | |
method: 'GET', | |
}).then(function(response) { | |
return response.json(); | |
}).then(function(res) { | |
if(res.isAcc){ | |
return res.isAcc; | |
}else{ | |
return res; | |
} | |
}) | |
return response | |
},domain,account_id,time) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment