Skip to content

Commit 34230f7

Browse files
committed
修复: Opquests识别不到按钮导致验证停止(#42)
1 parent 0a66d8e commit 34230f7

17 files changed

+34
-28
lines changed

.github/workflows/Release.yml

+3-3
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.5.7
25-
name: 4.5.7
26-
body: '- 修复: Steam任务完成后的换区逻辑(#41)'
24+
tag_name: v4.5.8
25+
name: 4.5.8
26+
body: '- 修复: Opquests识别不到按钮导致验证停止(#42)'
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

+1-1
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

+1-1
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

+2-2
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.5.7
4+
// @version 4.5.8
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
@@ -9184,7 +9184,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
91849184
await this.#confirm();
91859185
const taskId = tasks.pop();
91869186
GM_setValue('opquestsVerifyTasks', tasks);
9187-
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0].click();
9187+
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0]?.click();
91889188
return true;
91899189
} catch (error) {
91909190
throwError(error, 'Opquests.verifyTask');

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

+2-2
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

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task-v4.user.js

+2-2
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.5.7
4+
// @version 4.5.8
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
@@ -9165,7 +9165,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
91659165
await this.#confirm();
91669166
const taskId = tasks.pop();
91679167
GM_setValue('opquestsVerifyTasks', tasks);
9168-
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0].click();
9168+
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0]?.click();
91699169
return true;
91709170
} catch (error) {
91719171
throwError(error, 'Opquests.verifyTask');

doc/docs/logs/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ lang: zh-CN
55

66
## V4.5
77

8+
### V4.5.8
9+
10+
[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.5.8)
11+
12+
- 修复: Opquests识别不到按钮导致验证停止([#42](https://github.com/HCLonely/auto-task-v4/issues/42))
13+
814
### V4.5.7
915

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

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "auto-task-v4",
3-
"version": "4.5.7",
3+
"version": "4.5.8",
44
"change": [
5-
"修复: Steam任务完成后的换区逻辑(#41)"
5+
"修复: Opquests识别不到按钮导致验证停止(#42)"
66
],
77
"description": "赠Key站自动任务脚本",
88
"engines": {

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

+1-1
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

+1-1
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

+2-2
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.5.7
4+
// @version 4.5.8
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
@@ -9184,7 +9184,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
91849184
await this.#confirm();
91859185
const taskId = tasks.pop();
91869186
GM_setValue('opquestsVerifyTasks', tasks);
9187-
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0].click();
9187+
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0]?.click();
91889188
return true;
91899189
} catch (error) {
91909190
throwError(error, 'Opquests.verifyTask');

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

+2-2
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

+2-2
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

+2-2
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.5.7
4+
// @version 4.5.8
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
@@ -9165,7 +9165,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
91659165
await this.#confirm();
91669166
const taskId = tasks.pop();
91679167
GM_setValue('opquestsVerifyTasks', tasks);
9168-
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0].click();
9168+
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0]?.click();
91699169
return true;
91709170
} catch (error) {
91719171
throwError(error, 'Opquests.verifyTask');

page/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "auto-task-v4",
3-
"version": "4.5.7",
3+
"version": "4.5.8",
44
"change": [
5-
"修复: Steam任务完成后的换区逻辑(#41)"
5+
"修复: Opquests识别不到按钮导致验证停止(#42)"
66
],
77
"description": "赠Key站自动任务脚本",
88
"engines": {

src/scripts/website/Opquests.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class Opquests extends Website {
289289
const taskId = tasks.pop();
290290
GM_setValue('opquestsVerifyTasks', tasks);
291291
$(`#task_id[value="${taskId}"]`).parent()
292-
.children('button[type="submit"]')[0].click();
292+
.children('button[type="submit"]')[0]?.click();
293293
return true;
294294
} catch (error) {
295295
throwError(error as Error, 'Opquests.verifyTask');

0 commit comments

Comments
 (0)