Skip to content

Commit

Permalink
点赞社区通知增加换区功能
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Jan 10, 2022
1 parent 7c48bbe commit 09b49e1
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 21 deletions.
4 changes: 2 additions & 2 deletions dist/auto-task-v4-for-giveawaysu.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.

11 changes: 9 additions & 2 deletions dist/auto-task-v4.user.js

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "auto-task-v4",
"version": "4.1.9-Beta",
"version": "4.1.10-Beta",
"change": [
"剩余Key检测优化",
"GiveeClub愿望单任务识别优化"
"点赞社区通知增加换区功能"
],
"description": "赠Key站自动任务脚本",
"main": "package.json",
Expand Down
4 changes: 2 additions & 2 deletions page/dist/auto-task-v4-for-giveawaysu.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.

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

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions page/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "auto-task-v4",
"version": "4.1.9-Beta",
"version": "4.1.10-Beta",
"change": [
"剩余Key检测优化",
"GiveeClub愿望单任务识别优化"
"点赞社区通知增加换区功能"
],
"description": "赠Key站自动任务脚本",
"main": "package.json",
Expand Down
7 changes: 6 additions & 1 deletion 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-01-08 17:02:39
* @LastEditTime : 2022-01-10 09:53:09
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/scripts/social/Steam.ts
* @Description : steam相关功能
Expand Down Expand Up @@ -847,6 +847,11 @@ class Steam extends Social {
});
if (result === 'Success') {
if (data?.status === 200) {
if (this.#area === 'CN' && data.responseText.includes('id="error_box"')) {
logStatus.warning(__('changeAreaNotice'));
if (!(await this.#changeArea())) return {};
return await this.#getAnnouncementParams(appId, viewId);
}
const authWgToken = data.responseText.match(/authwgtoken":"(.*?)"/)?.[1];
const clanId = data.responseText.match(/clanAccountID":([\d]+?),/)?.[1];
const gid = data.responseText.match(/announcementGID":"([\d]+?)"/)?.[1];
Expand Down

1 comment on commit 09b49e1

@vercel
Copy link

@vercel vercel bot commented on 09b49e1 Jan 10, 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.