Skip to content

Commit

Permalink
去除qna3验证
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsongsu committed Jan 20, 2024
1 parent c6cbcfd commit 746099a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/qna3/qna3.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function recaptcha(pageAction) {
}

async function login (wallet){
const gRecaptchaResponse = await recaptcha('login');
//const gRecaptchaResponse = await recaptcha('login');
const url = 'https://api.qna3.ai/api/v2/auth/login?via=wallet';
const msg = 'AI + DYOR = Ultimate Answer to Unlock Web3 Universe'
const signature = await wallet.signMessage(msg);
Expand All @@ -82,7 +82,7 @@ async function login (wallet){
const data = {
'wallet_address': wallet.address,
'signature': signature,
'recaptcha': gRecaptchaResponse,
//'recaptcha': gRecaptchaResponse,
};
const urlConfig = {
headers: headers,
Expand All @@ -93,7 +93,6 @@ async function login (wallet){
};
const response = await sendRequest(url, urlConfig);
headers['Authorization'] = `bearer ${response.data.accessToken}`;
console.log(`登录成功,开始签到`);
return response.data
}

Expand Down Expand Up @@ -135,7 +134,7 @@ async function main() {
for (const walletInfo of wallets) {
const wallet = new ethers.Wallet(walletInfo.decryptedPrivateKey, provider);
console.log(`开始为 ${wallet.address}签到`);
console.log(`请求google验证中......`)
//console.log(`请求google验证中......`)
const loginStatus = await login(wallet);
console.log(`登录成功,开始签到`);
const checkInStatus = await checkIn(wallet);
Expand Down
2 changes: 1 addition & 1 deletion src/web3go/web3goMint.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async function main() {
console.log(`钱包地址:${wallet.address}`, `MINT哈希:${tx.hash}`);

const pauseTime = randomPause();
console.log(`任务完成,线程暂停${pauseTime}分钟`);
console.log(`任务完成,线程暂停${pauseTime}`);
await sleep(pauseTime);
}
catch (error) {
Expand Down
4 changes: 2 additions & 2 deletions utils/utils.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const axios = require('axios');
const config = require('../config/runner.json');

const sleep = (minutes) => {
const milliseconds = minutes * 60 * 1000;
const sleep = (seconds) => {
const milliseconds = seconds * 1000;
return new Promise(resolve => setTimeout(resolve, milliseconds));
};

Expand Down

0 comments on commit 746099a

Please sign in to comment.