Skip to content

Commit

Permalink
修复Steam凭证验证失败的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Sep 6, 2022
1 parent 90c0ce2 commit 335e789
Show file tree
Hide file tree
Showing 17 changed files with 39 additions and 33 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
uses: softprops/action-gh-release@v1
with:
prerelease: false
tag_name: v4.2.19
name: 4.2.19
body: '- Keyhub可识别任务增加[''Follow *** Instagram'', ''Watch ...'']'
tag_name: v4.2.20
name: 4.2.20
body: '- 修复Steam凭证验证失败的BUG'
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.

4 changes: 2 additions & 2 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.19
// @version 4.2.20
// @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 @@ -5252,7 +5252,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
if (result === 'Success') {
if ((data === null || data === void 0 ? void 0 : data.status) === 200) {
var _data$responseText$ma2;
if (data.responseText.includes('href="https://store.steampowered.com/login/')) {
if (!data.responseText.includes('data-miniprofile=')) {
logStatus.error(`Error:${i18n('needLoginSteamStore')}`, true);
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions dist/auto-task-v4.compatibility.all.user.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 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.19
// @version 4.2.20
// @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 @@ -5233,7 +5233,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
if (result === 'Success') {
if ((data === null || data === void 0 ? void 0 : data.status) === 200) {
var _data$responseText$ma2;
if (data.responseText.includes('href="https://store.steampowered.com/login/')) {
if (!data.responseText.includes('data-miniprofile=')) {
logStatus.error(`Error:${i18n('needLoginSteamStore')}`, true);
return false;
}
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.20

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

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

### V4.2.19

[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.2.19)
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.19",
"version": "4.2.20",
"change": [
"Keyhub可识别任务增加['Follow *** Instagram', 'Watch ...']"
"修复Steam凭证验证失败的BUG"
],
"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.

4 changes: 2 additions & 2 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.19
// @version 4.2.20
// @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 @@ -5252,7 +5252,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
if (result === 'Success') {
if ((data === null || data === void 0 ? void 0 : data.status) === 200) {
var _data$responseText$ma2;
if (data.responseText.includes('href="https://store.steampowered.com/login/')) {
if (!data.responseText.includes('data-miniprofile=')) {
logStatus.error(`Error:${i18n('needLoginSteamStore')}`, true);
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions page/dist/auto-task-v4.compatibility.all.user.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 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.19
// @version 4.2.20
// @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 @@ -5233,7 +5233,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
if (result === 'Success') {
if ((data === null || data === void 0 ? void 0 : data.status) === 200) {
var _data$responseText$ma2;
if (data.responseText.includes('href="https://store.steampowered.com/login/')) {
if (!data.responseText.includes('data-miniprofile=')) {
logStatus.error(`Error:${i18n('needLoginSteamStore')}`, true);
return false;
}
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.19",
"version": "4.2.20",
"change": [
"Keyhub可识别任务增加['Follow *** Instagram', 'Watch ...']"
"修复Steam凭证验证失败的BUG"
],
"description": "赠Key站自动任务脚本",
"main": "package.json",
Expand Down
4 changes: 2 additions & 2 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-02-22 09:18:46
* @LastEditTime : 2022-09-06 18:33:53
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/scripts/social/Steam.ts
* @Description : steam相关功能
Expand Down Expand Up @@ -108,7 +108,7 @@ class Steam extends Social {
});
if (result === 'Success') {
if (data?.status === 200) {
if (data.responseText.includes('href="https://store.steampowered.com/login/')) {
if (!data.responseText.includes('data-miniprofile=')) {
logStatus.error(`Error:${__('needLoginSteamStore')}`, true);
return false;
}
Expand Down

1 comment on commit 335e789

@vercel
Copy link

@vercel vercel bot commented on 335e789 Sep 6, 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.