Skip to content

Commit

Permalink
修复:Opquests验证任务报错
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Mar 12, 2023
1 parent f563932 commit f527cdd
Show file tree
Hide file tree
Showing 19 changed files with 85 additions and 49 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
uses: softprops/action-gh-release@v1
with:
prerelease: false
tag_name: v4.2.32
name: 4.2.32
body: '- 优化:Opquests验证任务流程'
tag_name: v4.2.33
name: 4.2.33
body: '- 修复:Opquests验证任务报错'
files: |-
dist/auto-task-v4-for-giveawaysu.user.js
dist/auto-task-v4.compatibility.user.js
Expand Down
4 changes: 2 additions & 2 deletions dist/auto-task-v4-for-giveawaysu.all.user.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/auto-task-v4-for-giveawaysu.user.js

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions dist/auto-task-v4.all.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name auto-task-v4
// @namespace auto-task-v4
// @version 4.2.32
// @version 4.2.33
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
// @author HCLonely
Expand Down Expand Up @@ -1445,7 +1445,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
giveeClubVerifyNotice: '正在验证任务...',
giveeClubVerifyFinished: '请等待验证完成后自行加入赠Key',
doingKeyhubTask: '正在做Keyhub任务...',
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...'
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...',
confirmingTask: '正在跳过警告页面...'
};
const zh_CN = data;
const en_US_data = {
Expand Down Expand Up @@ -1715,7 +1716,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
giveeClubVerifyNotice: 'Verifying task...',
giveeClubVerifyFinished: 'Wait for the verification to complete and join it by yourself',
doingKeyhubTask: 'Doing Keyhub Task...',
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...'
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...',
confirmingTask: 'Confirming task...'
};
const en_US = en_US_data;
const languages = {
Expand Down Expand Up @@ -9733,6 +9735,9 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
}
async verifyTask() {
try {
if (!this.initialized) {
this.init();
}
const tasks = $.makeArray($('div.w-full').find('.items-center').has('button.submit-loader')).map(ele => ({
token: $(ele).find('input[name="_token"]').val(),
taskId: $(ele).find('input[name="task_id"]').val(),
Expand Down Expand Up @@ -9807,7 +9812,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
data
} = await tools_httpRequest({
url: `https://opquests.com/quests/${this.giveawayId}?confirm=1`,
method: 'POST',
method: 'GET',
nochche: true,
headers: {
origin: 'https://opquests.com',
Expand Down
6 changes: 3 additions & 3 deletions dist/auto-task-v4.compatibility.all.user.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/auto-task-v4.compatibility.user.js

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions dist/auto-task-v4.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name auto-task-v4
// @namespace auto-task-v4
// @version 4.2.32
// @version 4.2.33
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
// @author HCLonely
Expand Down Expand Up @@ -1426,7 +1426,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
giveeClubVerifyNotice: '正在验证任务...',
giveeClubVerifyFinished: '请等待验证完成后自行加入赠Key',
doingKeyhubTask: '正在做Keyhub任务...',
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...'
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...',
confirmingTask: '正在跳过警告页面...'
};
const zh_CN = data;
const en_US_data = {
Expand Down Expand Up @@ -1696,7 +1697,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
giveeClubVerifyNotice: 'Verifying task...',
giveeClubVerifyFinished: 'Wait for the verification to complete and join it by yourself',
doingKeyhubTask: 'Doing Keyhub Task...',
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...'
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...',
confirmingTask: 'Confirming task...'
};
const en_US = en_US_data;
const languages = {
Expand Down Expand Up @@ -9714,6 +9716,9 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
}
async verifyTask() {
try {
if (!this.initialized) {
this.init();
}
const tasks = $.makeArray($('div.w-full').find('.items-center').has('button.submit-loader')).map(ele => ({
token: $(ele).find('input[name="_token"]').val(),
taskId: $(ele).find('input[name="task_id"]').val(),
Expand Down Expand Up @@ -9788,7 +9793,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
data
} = await tools_httpRequest({
url: `https://opquests.com/quests/${this.giveawayId}?confirm=1`,
method: 'POST',
method: 'GET',
nochche: true,
headers: {
origin: 'https://opquests.com',
Expand Down
6 changes: 6 additions & 0 deletions doc/docs/logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ lang: zh-CN

## V4.2

### V4.2.33

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

- 修复:Opquests验证任务报错

### V4.2.32

[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.2.32)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "auto-task-v4",
"version": "4.2.32",
"version": "4.2.33",
"change": [
"优化:Opquests验证任务流程"
"修复:Opquests验证任务报错"
],
"description": "赠Key站自动任务脚本",
"main": "package.json",
Expand Down
4 changes: 2 additions & 2 deletions page/dist/auto-task-v4-for-giveawaysu.all.user.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions page/dist/auto-task-v4-for-giveawaysu.user.js

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions page/dist/auto-task-v4.all.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name auto-task-v4
// @namespace auto-task-v4
// @version 4.2.32
// @version 4.2.33
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
// @author HCLonely
Expand Down Expand Up @@ -1445,7 +1445,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
giveeClubVerifyNotice: '正在验证任务...',
giveeClubVerifyFinished: '请等待验证完成后自行加入赠Key',
doingKeyhubTask: '正在做Keyhub任务...',
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...'
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...',
confirmingTask: '正在跳过警告页面...'
};
const zh_CN = data;
const en_US_data = {
Expand Down Expand Up @@ -1715,7 +1716,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
giveeClubVerifyNotice: 'Verifying task...',
giveeClubVerifyFinished: 'Wait for the verification to complete and join it by yourself',
doingKeyhubTask: 'Doing Keyhub Task...',
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...'
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...',
confirmingTask: 'Confirming task...'
};
const en_US = en_US_data;
const languages = {
Expand Down Expand Up @@ -9733,6 +9735,9 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
}
async verifyTask() {
try {
if (!this.initialized) {
this.init();
}
const tasks = $.makeArray($('div.w-full').find('.items-center').has('button.submit-loader')).map(ele => ({
token: $(ele).find('input[name="_token"]').val(),
taskId: $(ele).find('input[name="task_id"]').val(),
Expand Down Expand Up @@ -9807,7 +9812,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
data
} = await tools_httpRequest({
url: `https://opquests.com/quests/${this.giveawayId}?confirm=1`,
method: 'POST',
method: 'GET',
nochche: true,
headers: {
origin: 'https://opquests.com',
Expand Down
6 changes: 3 additions & 3 deletions page/dist/auto-task-v4.compatibility.all.user.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions page/dist/auto-task-v4.compatibility.user.js

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions page/dist/auto-task-v4.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name auto-task-v4
// @namespace auto-task-v4
// @version 4.2.32
// @version 4.2.33
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
// @author HCLonely
Expand Down Expand Up @@ -1426,7 +1426,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
giveeClubVerifyNotice: '正在验证任务...',
giveeClubVerifyFinished: '请等待验证完成后自行加入赠Key',
doingKeyhubTask: '正在做Keyhub任务...',
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...'
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...',
confirmingTask: '正在跳过警告页面...'
};
const zh_CN = data;
const en_US_data = {
Expand Down Expand Up @@ -1696,7 +1697,8 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
giveeClubVerifyNotice: 'Verifying task...',
giveeClubVerifyFinished: 'Wait for the verification to complete and join it by yourself',
doingKeyhubTask: 'Doing Keyhub Task...',
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...'
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...',
confirmingTask: 'Confirming task...'
};
const en_US = en_US_data;
const languages = {
Expand Down Expand Up @@ -9714,6 +9716,9 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
}
async verifyTask() {
try {
if (!this.initialized) {
this.init();
}
const tasks = $.makeArray($('div.w-full').find('.items-center').has('button.submit-loader')).map(ele => ({
token: $(ele).find('input[name="_token"]').val(),
taskId: $(ele).find('input[name="task_id"]').val(),
Expand Down Expand Up @@ -9788,7 +9793,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
data
} = await tools_httpRequest({
url: `https://opquests.com/quests/${this.giveawayId}?confirm=1`,
method: 'POST',
method: 'GET',
nochche: true,
headers: {
origin: 'https://opquests.com',
Expand Down
4 changes: 2 additions & 2 deletions page/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "auto-task-v4",
"version": "4.2.32",
"version": "4.2.33",
"change": [
"优化:Opquests验证任务流程"
"修复:Opquests验证任务报错"
],
"description": "赠Key站自动任务脚本",
"main": "package.json",
Expand Down
7 changes: 5 additions & 2 deletions src/locales/en-US.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-12-30 17:08:27
* @LastEditTime : 2022-10-07 09:47:24
* @LastEditTime : 2023-03-12 10:28:32
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/locales/en-US.js
* @Description : i18n英文
Expand Down Expand Up @@ -325,6 +325,9 @@ const data = {

// SweepWidget
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...'
'There is an interval of 1~3s for each verification task to prevent the triggering of too fast verification warning...',

// opquests
confirmingTask: 'Confirming task...'
};
export default data;
7 changes: 5 additions & 2 deletions src/locales/zh-CN.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-11-20 19:38:41
* @LastEditTime : 2022-12-19 10:12:11
* @LastEditTime : 2023-03-12 10:28:06
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/locales/zh-CN.js
* @Description : i18n中文
Expand Down Expand Up @@ -306,6 +306,9 @@ const data = {
doingKeyhubTask: '正在做Keyhub任务...',

// SweepWidget
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...'
SweepWidgetNotice: '正在处理并验证任务,每次验证任务有1~3s间隔防止触发验证过快警告...',

// opquests
confirmingTask: '正在跳过警告页面...'
};
export default data;
8 changes: 6 additions & 2 deletions src/scripts/website/Opquests.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-11-18 13:31:23
* @LastEditTime : 2023-03-06 09:51:17
* @LastEditTime : 2023-03-12 10:22:27
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/scripts/website/Opquests.ts
* @Description : https://opquests.com/
Expand Down Expand Up @@ -72,6 +72,7 @@ class Opquests extends Website {
echoLog({ text: __('cannotUndo') });
return false;
}

const logStatus = echoLog({ text: __('getTasksInfo') });

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

const { result, statusText, status, data } = await httpRequest({
url: `https://opquests.com/quests/${this.giveawayId}?confirm=1`,
method: 'POST',
method: 'GET',
nochche: true,
headers: {
origin: 'https://opquests.com',
Expand Down

1 comment on commit f527cdd

@vercel
Copy link

@vercel vercel bot commented on f527cdd Mar 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.