mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-19 08:14:36 +08:00
拾光家:更新远程仓库
This commit is contained in:
11
sgj.js
11
sgj.js
@@ -3,7 +3,7 @@
|
|||||||
* cron 10 10 * * * sgj.js
|
* cron 10 10 * * * sgj.js
|
||||||
*
|
*
|
||||||
* 22/12/7 每日答题1块钱低保
|
* 22/12/7 每日答题1块钱低保
|
||||||
* 22/12/8 请在执行前手动完成所有的剩余任务
|
* 22/12/8 请在执行前手动完成所有的剩余任务 一天运行5次
|
||||||
* ========= 青龙--配置文件 ===========
|
* ========= 青龙--配置文件 ===========
|
||||||
* # 项目名称
|
* # 项目名称
|
||||||
* export sgj_data='token'
|
* export sgj_data='token'
|
||||||
@@ -46,16 +46,17 @@ async function start() {
|
|||||||
console.log('\n================== 开始获取答题 ==================\n');
|
console.log('\n================== 开始获取答题 ==================\n');
|
||||||
taskall = [];
|
taskall = [];
|
||||||
for (let user of userList) {
|
for (let user of userList) {
|
||||||
for (let o = 0; o < 2; o++) {
|
for (let i = 0; i < 2; i++) {
|
||||||
taskall.push(await user.task_accept('开始获取答题'));
|
taskall.push(await user.task_accept('开始获取答题'));
|
||||||
await wait(15); //延迟}
|
await wait(15); //延迟
|
||||||
|
}
|
||||||
}
|
}
|
||||||
await Promise.all(taskall);
|
await Promise.all(taskall);
|
||||||
console.log('\n================== 开始提现 ==================\n');
|
console.log('\n================== 开始提现 ==================\n');
|
||||||
taskall = [];
|
taskall = [];
|
||||||
for (let user of userList) {
|
for (let user of userList) {
|
||||||
taskall.push(await user.tx_check());
|
taskall.push(await user.tx_check());
|
||||||
await wait(10); //延迟
|
await wait(15); //延迟
|
||||||
}
|
}
|
||||||
await Promise.all(taskall);
|
await Promise.all(taskall);
|
||||||
|
|
||||||
@@ -298,7 +299,7 @@ async function start() {
|
|||||||
if (result.code == 1) {
|
if (result.code == 1) {
|
||||||
DoubleLog(`账号[${this.index}] 进入答题成功: ${result.msg}`);
|
DoubleLog(`账号[${this.index}] 进入答题成功: ${result.msg}`);
|
||||||
console.log(`本次答题id为[${result.data.rw.id}&${result.data.rw.rw_id}]`)
|
console.log(`本次答题id为[${result.data.rw.id}&${result.data.rw.rw_id}]`)
|
||||||
console.log(`广告标题[${result.data.rw.name}],任务标题[${result.data.rw.short_name}]`)
|
console.log(`广告标题[${result.data.rw.name}]`)
|
||||||
//console.log(`任务类型[${result.data.rw.tags_text}]&[${result.data.rw.type_text}],任务状况[${result.data.rw.status_text}]`);
|
//console.log(`任务类型[${result.data.rw.tags_text}]&[${result.data.rw.type_text}],任务状况[${result.data.rw.status_text}]`);
|
||||||
await wait(3)
|
await wait(3)
|
||||||
await this.get_qlist(r4)
|
await this.get_qlist(r4)
|
||||||
|
|||||||
Reference in New Issue
Block a user