Skip to content

Commit f527cdd

Browse files
committed
修复:Opquests验证任务报错
1 parent f563932 commit f527cdd

19 files changed

+85
-49
lines changed

.github/workflows/Release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
uses: softprops/action-gh-release@v1
2222
with:
2323
prerelease: false
24-
tag_name: v4.2.32
25-
name: 4.2.32
26-
body: '- 优化:Opquests验证任务流程'
24+
tag_name: v4.2.33
25+
name: 4.2.33
26+
body: '- 修复:Opquests验证任务报错'
2727
files: |-
2828
dist/auto-task-v4-for-giveawaysu.user.js
2929
dist/auto-task-v4.compatibility.user.js

dist/auto-task-v4-for-giveawaysu.all.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task-v4-for-giveawaysu.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task-v4.all.user.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task-v4
33
// @namespace auto-task-v4
4-
// @version 4.2.32
4+
// @version 4.2.33
55
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
66
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
77
// @author HCLonely
@@ -1445,7 +1445,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
14451445
giveeClubVerifyNotice: '正在验证任务...',
14461446
giveeClubVerifyFinished: '请等待验证完成后自行加入赠Key',
14471447
doingKeyhubTask: '正在做Keyhub任务...',
1448-
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...'
1448+
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...',
1449+
confirmingTask: '正在跳过警告页面...'
14491450
};
14501451
const zh_CN = data;
14511452
const en_US_data = {
@@ -1715,7 +1716,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
17151716
giveeClubVerifyNotice: 'Verifying task...',
17161717
giveeClubVerifyFinished: 'Wait for the verification to complete and join it by yourself',
17171718
doingKeyhubTask: 'Doing Keyhub Task...',
1718-
SweepWidgetNotice: 'The task is being processed and verified. ' + 'There is an interval of 1~3s for each verification task to prevent the triggering of too fast verification warning...'
1719+
SweepWidgetNotice: 'The task is being processed and verified. ' + 'There is an interval of 1~3s for each verification task to prevent the triggering of too fast verification warning...',
1720+
confirmingTask: 'Confirming task...'
17191721
};
17201722
const en_US = en_US_data;
17211723
const languages = {
@@ -9733,6 +9735,9 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
97339735
}
97349736
async verifyTask() {
97359737
try {
9738+
if (!this.initialized) {
9739+
this.init();
9740+
}
97369741
const tasks = $.makeArray($('div.w-full').find('.items-center').has('button.submit-loader')).map(ele => ({
97379742
token: $(ele).find('input[name="_token"]').val(),
97389743
taskId: $(ele).find('input[name="task_id"]').val(),
@@ -9807,7 +9812,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
98079812
data
98089813
} = await tools_httpRequest({
98099814
url: `https://opquests.com/quests/${this.giveawayId}?confirm=1`,
9810-
method: 'POST',
9815+
method: 'GET',
98119816
nochche: true,
98129817
headers: {
98139818
origin: 'https://opquests.com',

dist/auto-task-v4.compatibility.all.user.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task-v4.compatibility.user.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task-v4.user.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task-v4
33
// @namespace auto-task-v4
4-
// @version 4.2.32
4+
// @version 4.2.33
55
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
66
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
77
// @author HCLonely
@@ -1426,7 +1426,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
14261426
giveeClubVerifyNotice: '正在验证任务...',
14271427
giveeClubVerifyFinished: '请等待验证完成后自行加入赠Key',
14281428
doingKeyhubTask: '正在做Keyhub任务...',
1429-
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...'
1429+
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...',
1430+
confirmingTask: '正在跳过警告页面...'
14301431
};
14311432
const zh_CN = data;
14321433
const en_US_data = {
@@ -1696,7 +1697,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
16961697
giveeClubVerifyNotice: 'Verifying task...',
16971698
giveeClubVerifyFinished: 'Wait for the verification to complete and join it by yourself',
16981699
doingKeyhubTask: 'Doing Keyhub Task...',
1699-
SweepWidgetNotice: 'The task is being processed and verified. ' + 'There is an interval of 1~3s for each verification task to prevent the triggering of too fast verification warning...'
1700+
SweepWidgetNotice: 'The task is being processed and verified. ' + 'There is an interval of 1~3s for each verification task to prevent the triggering of too fast verification warning...',
1701+
confirmingTask: 'Confirming task...'
17001702
};
17011703
const en_US = en_US_data;
17021704
const languages = {
@@ -9714,6 +9716,9 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
97149716
}
97159717
async verifyTask() {
97169718
try {
9719+
if (!this.initialized) {
9720+
this.init();
9721+
}
97179722
const tasks = $.makeArray($('div.w-full').find('.items-center').has('button.submit-loader')).map(ele => ({
97189723
token: $(ele).find('input[name="_token"]').val(),
97199724
taskId: $(ele).find('input[name="task_id"]').val(),
@@ -9788,7 +9793,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
97889793
data
97899794
} = await tools_httpRequest({
97909795
url: `https://opquests.com/quests/${this.giveawayId}?confirm=1`,
9791-
method: 'POST',
9796+
method: 'GET',
97929797
nochche: true,
97939798
headers: {
97949799
origin: 'https://opquests.com',

doc/docs/logs/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ lang: zh-CN
55

66
## V4.2
77

8+
### V4.2.33
9+
10+
[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.2.33)
11+
12+
- 修复:Opquests验证任务报错
13+
814
### V4.2.32
915

1016
[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.2.32)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "auto-task-v4",
3-
"version": "4.2.32",
3+
"version": "4.2.33",
44
"change": [
5-
"优化:Opquests验证任务流程"
5+
"修复:Opquests验证任务报错"
66
],
77
"description": "赠Key站自动任务脚本",
88
"main": "package.json",

page/dist/auto-task-v4-for-giveawaysu.all.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

page/dist/auto-task-v4-for-giveawaysu.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

page/dist/auto-task-v4.all.user.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task-v4
33
// @namespace auto-task-v4
4-
// @version 4.2.32
4+
// @version 4.2.33
55
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
66
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
77
// @author HCLonely
@@ -1445,7 +1445,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
14451445
giveeClubVerifyNotice: '正在验证任务...',
14461446
giveeClubVerifyFinished: '请等待验证完成后自行加入赠Key',
14471447
doingKeyhubTask: '正在做Keyhub任务...',
1448-
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...'
1448+
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...',
1449+
confirmingTask: '正在跳过警告页面...'
14491450
};
14501451
const zh_CN = data;
14511452
const en_US_data = {
@@ -1715,7 +1716,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
17151716
giveeClubVerifyNotice: 'Verifying task...',
17161717
giveeClubVerifyFinished: 'Wait for the verification to complete and join it by yourself',
17171718
doingKeyhubTask: 'Doing Keyhub Task...',
1718-
SweepWidgetNotice: 'The task is being processed and verified. ' + 'There is an interval of 1~3s for each verification task to prevent the triggering of too fast verification warning...'
1719+
SweepWidgetNotice: 'The task is being processed and verified. ' + 'There is an interval of 1~3s for each verification task to prevent the triggering of too fast verification warning...',
1720+
confirmingTask: 'Confirming task...'
17191721
};
17201722
const en_US = en_US_data;
17211723
const languages = {
@@ -9733,6 +9735,9 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
97339735
}
97349736
async verifyTask() {
97359737
try {
9738+
if (!this.initialized) {
9739+
this.init();
9740+
}
97369741
const tasks = $.makeArray($('div.w-full').find('.items-center').has('button.submit-loader')).map(ele => ({
97379742
token: $(ele).find('input[name="_token"]').val(),
97389743
taskId: $(ele).find('input[name="task_id"]').val(),
@@ -9807,7 +9812,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
98079812
data
98089813
} = await tools_httpRequest({
98099814
url: `https://opquests.com/quests/${this.giveawayId}?confirm=1`,
9810-
method: 'POST',
9815+
method: 'GET',
98119816
nochche: true,
98129817
headers: {
98139818
origin: 'https://opquests.com',

page/dist/auto-task-v4.compatibility.all.user.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

page/dist/auto-task-v4.compatibility.user.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

page/dist/auto-task-v4.user.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task-v4
33
// @namespace auto-task-v4
4-
// @version 4.2.32
4+
// @version 4.2.33
55
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
66
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
77
// @author HCLonely
@@ -1426,7 +1426,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
14261426
giveeClubVerifyNotice: '正在验证任务...',
14271427
giveeClubVerifyFinished: '请等待验证完成后自行加入赠Key',
14281428
doingKeyhubTask: '正在做Keyhub任务...',
1429-
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...'
1429+
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...',
1430+
confirmingTask: '正在跳过警告页面...'
14301431
};
14311432
const zh_CN = data;
14321433
const en_US_data = {
@@ -1696,7 +1697,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
16961697
giveeClubVerifyNotice: 'Verifying task...',
16971698
giveeClubVerifyFinished: 'Wait for the verification to complete and join it by yourself',
16981699
doingKeyhubTask: 'Doing Keyhub Task...',
1699-
SweepWidgetNotice: 'The task is being processed and verified. ' + 'There is an interval of 1~3s for each verification task to prevent the triggering of too fast verification warning...'
1700+
SweepWidgetNotice: 'The task is being processed and verified. ' + 'There is an interval of 1~3s for each verification task to prevent the triggering of too fast verification warning...',
1701+
confirmingTask: 'Confirming task...'
17001702
};
17011703
const en_US = en_US_data;
17021704
const languages = {
@@ -9714,6 +9716,9 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
97149716
}
97159717
async verifyTask() {
97169718
try {
9719+
if (!this.initialized) {
9720+
this.init();
9721+
}
97179722
const tasks = $.makeArray($('div.w-full').find('.items-center').has('button.submit-loader')).map(ele => ({
97189723
token: $(ele).find('input[name="_token"]').val(),
97199724
taskId: $(ele).find('input[name="task_id"]').val(),
@@ -9788,7 +9793,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
97889793
data
97899794
} = await tools_httpRequest({
97909795
url: `https://opquests.com/quests/${this.giveawayId}?confirm=1`,
9791-
method: 'POST',
9796+
method: 'GET',
97929797
nochche: true,
97939798
headers: {
97949799
origin: 'https://opquests.com',

page/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "auto-task-v4",
3-
"version": "4.2.32",
3+
"version": "4.2.33",
44
"change": [
5-
"优化:Opquests验证任务流程"
5+
"修复:Opquests验证任务报错"
66
],
77
"description": "赠Key站自动任务脚本",
88
"main": "package.json",

src/locales/en-US.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @Author : HCLonely
33
* @Date : 2021-12-30 17:08:27
4-
* @LastEditTime : 2022-10-07 09:47:24
4+
* @LastEditTime : 2023-03-12 10:28:32
55
* @LastEditors : HCLonely
66
* @FilePath : /auto-task-new/src/locales/en-US.js
77
* @Description : i18n英文
@@ -325,6 +325,9 @@ const data = {
325325

326326
// SweepWidget
327327
SweepWidgetNotice: 'The task is being processed and verified. ' +
328-
'There is an interval of 1~3s for each verification task to prevent the triggering of too fast verification warning...'
328+
'There is an interval of 1~3s for each verification task to prevent the triggering of too fast verification warning...',
329+
330+
// opquests
331+
confirmingTask: 'Confirming task...'
329332
};
330333
export default data;

src/locales/zh-CN.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @Author : HCLonely
33
* @Date : 2021-11-20 19:38:41
4-
* @LastEditTime : 2022-12-19 10:12:11
4+
* @LastEditTime : 2023-03-12 10:28:06
55
* @LastEditors : HCLonely
66
* @FilePath : /auto-task-new/src/locales/zh-CN.js
77
* @Description : i18n中文
@@ -306,6 +306,9 @@ const data = {
306306
doingKeyhubTask: '正在做Keyhub任务...',
307307

308308
// SweepWidget
309-
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...'
309+
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...',
310+
311+
// opquests
312+
confirmingTask: '正在跳过警告页面...'
310313
};
311314
export default data;

src/scripts/website/Opquests.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @Author : HCLonely
33
* @Date : 2021-11-18 13:31:23
4-
* @LastEditTime : 2023-03-06 09:51:17
4+
* @LastEditTime : 2023-03-12 10:22:27
55
* @LastEditors : HCLonely
66
* @FilePath : /auto-task-new/src/scripts/website/Opquests.ts
77
* @Description : https://opquests.com/
@@ -72,6 +72,7 @@ class Opquests extends Website {
7272
echoLog({ text: __('cannotUndo') });
7373
return false;
7474
}
75+
7576
const logStatus = echoLog({ text: __('getTasksInfo') });
7677

7778
const tasks = $('.w-full:contains("Validate") .items-center');
@@ -112,6 +113,9 @@ class Opquests extends Website {
112113
}
113114
async verifyTask(): Promise<boolean> {
114115
try {
116+
if (!this.initialized) {
117+
this.init();
118+
}
115119
const tasks: Array<qpqTaskInfo> = $.makeArray($('div.w-full').find('.items-center')
116120
.has('button.submit-loader')).map((ele) => ({
117121
token: $(ele).find('input[name="_token"]')
@@ -146,7 +150,7 @@ class Opquests extends Website {
146150

147151
const { result, statusText, status, data } = await httpRequest({
148152
url: `https://opquests.com/quests/${this.giveawayId}?confirm=1`,
149-
method: 'POST',
153+
method: 'GET',
150154
nochche: true,
151155
headers: {
152156
origin: 'https://opquests.com',

0 commit comments

Comments
 (0)