Skip to content

Commit

Permalink
修复Steam凭证验证失败的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Sep 28, 2022
1 parent 335e789 commit b391d25
Show file tree
Hide file tree
Showing 19 changed files with 207 additions and 122 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
uses: softprops/action-gh-release@v1
with:
prerelease: false
tag_name: v4.2.20
name: 4.2.20
tag_name: v4.2.21
name: 4.2.21
body: '- 修复Steam凭证验证失败的BUG'
files: |-
dist/auto-task-v4-for-giveawaysu.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.

23 changes: 19 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.20
// @version 4.2.21
// @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 @@ -52,6 +52,7 @@
// @connect cdn.jsdelivr.net
// @connect store.steampowered.com
// @connect steamcommunity.com
// @connect login.steampowered.com
// @connect twitter.com
// @connect api.twitter.com
// @connect youtube.com
Expand Down Expand Up @@ -5246,8 +5247,15 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
status,
data
} = await tools_httpRequest({
url: 'https://store.steampowered.com/stats/',
method: 'GET'
url: 'https://store.steampowered.com/',
method: 'GET',
headers: {
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Cache-Control': 'max-age=0',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Upgrade-Insecure-Requests': '1'
}
});
if (result === 'Success') {
if ((data === null || data === void 0 ? void 0 : data.status) === 200) {
Expand Down Expand Up @@ -5287,7 +5295,14 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
data
} = await tools_httpRequest({
url: 'https://steamcommunity.com/my',
method: 'GET'
method: 'GET',
headers: {
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Cache-Control': 'max-age=0',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Upgrade-Insecure-Requests': '1'
}
});
if (result === 'Success') {
if ((data === null || data === void 0 ? void 0 : data.status) === 200) {
Expand Down
45 changes: 23 additions & 22 deletions dist/auto-task-v4.compatibility.all.user.js

Large diffs are not rendered by default.

45 changes: 23 additions & 22 deletions dist/auto-task-v4.compatibility.user.js

Large diffs are not rendered by default.

23 changes: 19 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.20
// @version 4.2.21
// @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 @@ -52,6 +52,7 @@
// @connect cdn.jsdelivr.net
// @connect store.steampowered.com
// @connect steamcommunity.com
// @connect login.steampowered.com
// @connect twitter.com
// @connect api.twitter.com
// @connect youtube.com
Expand Down Expand Up @@ -5227,8 +5228,15 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
status,
data
} = await tools_httpRequest({
url: 'https://store.steampowered.com/stats/',
method: 'GET'
url: 'https://store.steampowered.com/',
method: 'GET',
headers: {
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Cache-Control': 'max-age=0',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Upgrade-Insecure-Requests': '1'
}
});
if (result === 'Success') {
if ((data === null || data === void 0 ? void 0 : data.status) === 200) {
Expand Down Expand Up @@ -5268,7 +5276,14 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
data
} = await tools_httpRequest({
url: 'https://steamcommunity.com/my',
method: 'GET'
method: 'GET',
headers: {
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Cache-Control': 'max-age=0',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Upgrade-Insecure-Requests': '1'
}
});
if (result === 'Success') {
if ((data === null || data === void 0 ? void 0 : data.status) === 200) {
Expand Down
4 changes: 2 additions & 2 deletions doc/docs/.vuepress/public/report.html

Large diffs are not rendered by default.

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.21

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

- 修复Steam凭证验证失败的BUG

### V4.2.20

[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.2.20)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auto-task-v4",
"version": "4.2.20",
"version": "4.2.21",
"change": [
"修复Steam凭证验证失败的BUG"
],
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.

23 changes: 19 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.20
// @version 4.2.21
// @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 @@ -52,6 +52,7 @@
// @connect cdn.jsdelivr.net
// @connect store.steampowered.com
// @connect steamcommunity.com
// @connect login.steampowered.com
// @connect twitter.com
// @connect api.twitter.com
// @connect youtube.com
Expand Down Expand Up @@ -5246,8 +5247,15 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
status,
data
} = await tools_httpRequest({
url: 'https://store.steampowered.com/stats/',
method: 'GET'
url: 'https://store.steampowered.com/',
method: 'GET',
headers: {
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Cache-Control': 'max-age=0',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Upgrade-Insecure-Requests': '1'
}
});
if (result === 'Success') {
if ((data === null || data === void 0 ? void 0 : data.status) === 200) {
Expand Down Expand Up @@ -5287,7 +5295,14 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
data
} = await tools_httpRequest({
url: 'https://steamcommunity.com/my',
method: 'GET'
method: 'GET',
headers: {
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Cache-Control': 'max-age=0',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Upgrade-Insecure-Requests': '1'
}
});
if (result === 'Success') {
if ((data === null || data === void 0 ? void 0 : data.status) === 200) {
Expand Down
45 changes: 23 additions & 22 deletions page/dist/auto-task-v4.compatibility.all.user.js

Large diffs are not rendered by default.

45 changes: 23 additions & 22 deletions page/dist/auto-task-v4.compatibility.user.js

Large diffs are not rendered by default.

23 changes: 19 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.20
// @version 4.2.21
// @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 @@ -52,6 +52,7 @@
// @connect cdn.jsdelivr.net
// @connect store.steampowered.com
// @connect steamcommunity.com
// @connect login.steampowered.com
// @connect twitter.com
// @connect api.twitter.com
// @connect youtube.com
Expand Down Expand Up @@ -5227,8 +5228,15 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
status,
data
} = await tools_httpRequest({
url: 'https://store.steampowered.com/stats/',
method: 'GET'
url: 'https://store.steampowered.com/',
method: 'GET',
headers: {
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Cache-Control': 'max-age=0',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Upgrade-Insecure-Requests': '1'
}
});
if (result === 'Success') {
if ((data === null || data === void 0 ? void 0 : data.status) === 200) {
Expand Down Expand Up @@ -5268,7 +5276,14 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
data
} = await tools_httpRequest({
url: 'https://steamcommunity.com/my',
method: 'GET'
method: 'GET',
headers: {
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Cache-Control': 'max-age=0',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Upgrade-Insecure-Requests': '1'
}
});
if (result === 'Success') {
if ((data === null || data === void 0 ? void 0 : data.status) === 200) {
Expand Down
2 changes: 1 addition & 1 deletion page/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auto-task-v4",
"version": "4.2.20",
"version": "4.2.21",
"change": [
"修复Steam凭证验证失败的BUG"
],
Expand Down
1 change: 1 addition & 0 deletions src/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
// @connect cdn.jsdelivr.net
// @connect store.steampowered.com
// @connect steamcommunity.com
// @connect login.steampowered.com
// @connect twitter.com
// @connect api.twitter.com
// @connect youtube.com
Expand Down
22 changes: 18 additions & 4 deletions src/scripts/social/Steam.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-10-04 16:07:55
* @LastEditTime : 2022-09-06 18:33:53
* @LastEditTime : 2022-09-26 09:28:05
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/scripts/social/Steam.ts
* @Description : steam相关功能
Expand Down Expand Up @@ -103,8 +103,15 @@ class Steam extends Social {
try {
const logStatus = echoLog({ text: __('updatingAuth', __('steamStore')) });
const { result, statusText, status, data } = await httpRequest({
url: 'https://store.steampowered.com/stats/',
method: 'GET'
url: 'https://store.steampowered.com/',
method: 'GET',
headers: {
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Cache-Control': 'max-age=0',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Upgrade-Insecure-Requests': '1'
}
});
if (result === 'Success') {
if (data?.status === 200) {
Expand Down Expand Up @@ -142,7 +149,14 @@ class Steam extends Social {
const logStatus = echoLog({ text: __('updatingAuth', __('steamCommunity')) });
const { result, statusText, status, data } = await httpRequest({
url: 'https://steamcommunity.com/my',
method: 'GET'
method: 'GET',
headers: {
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Cache-Control': 'max-age=0',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Upgrade-Insecure-Requests': '1'
}
});
if (result === 'Success') {
if (data?.status === 200) {
Expand Down

1 comment on commit b391d25

@vercel
Copy link

@vercel vercel bot commented on b391d25 Sep 28, 2022

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.