Skip to content

Commit

Permalink
🐇 Keep script up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
josark2005 committed Aug 23, 2021
1 parent 8c7fd83 commit 43385ec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

最新版本:![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/ColaSign/haidan?style=flat-square)

当前版本:![GitHub tag](https://img.shields.io/badge/tag-v0.0.5-orange)
当前版本:![GitHub tag](https://img.shields.io/badge/tag-v0.0.6-orange)

## 更新预告

Expand All @@ -25,10 +25,14 @@
- `c_secure_uid`
- `c_secure_pass`
- `*c_secure_login`(可选/非必要)
- `*c_secure_ssl`(可选/非必要)
- `*c_secure_tracker_ssl`(可选/非必要)
- 设置`Secrets`
- `HAIDAN_UID`:获取的`c_secure_uid`
- `HAIDAN_PASS`:获取的`c_secure_pass`
- `*HAIDAN_LOGIN`:获取的`c_secure_login`(可选/非必要)
- `*HAIDAN_SSL`:获取的`c_secure_ssl`(可选/非必要)
- `*HAIDAN_TRACKER_SSL`:获取的`c_secure_tracker_ssl`(可选/非必要)
- 任意修改`README.md`以启动`Action`


Expand All @@ -38,7 +42,9 @@
|:-:|:-:|:-:|:-:|:-|
|`HAIDAN_UID`|`c_secure_uid`|无默认值|||
|`HAIDAN_PASS`|`c_secure_pass`|无默认值|||
|`HAIDAN_LOGIN`|`c_secure_login`|无默认值|×||
|`HAIDAN_LOGIN`|`c_secure_login`|bm9wZQ%3D%3D|||
|`HAIDAN_SSL`|`c_secure_ssl`|eWVhaA%3D%3D|||
|`HAIDAN_TRACKER_SSL`|`c_secure_tracker_ssl`|eWVhaA%3D%3D|||
|`HAIDAN_MULTI`|*多任务设置*|无默认值|×|多账户支持,详见下方`多账户支持`|
|`HAIDAN_PRIVACY`|`隐私等级`|1|×|`1`:隐藏用户名首尾 `2`:隐藏用户名 `3`:显示用户名|

Expand Down
8 changes: 5 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def main() :
print("=================================================")
print("|| HaiDan Sign ||")
print("|| Author: Jokin ||")
print("|| Version: v0.0.5 ||")
print("|| Version: v0.0.6 ||")
print("=================================================")

global HEADERS
Expand All @@ -100,6 +100,8 @@ def main() :
_uid = os.getenv('HAIDAN_UID') if os.getenv('HAIDAN_UID') else False
_pass = os.getenv('HAIDAN_PASS') if os.getenv('HAIDAN_PASS') else False
_login = os.getenv('HAIDAN_LOGIN') if os.getenv('HAIDAN_LOGIN') else 'bm9wZQ%3D%3D'
_ssl = os.getenv('HAIDAN_SSL') if os.getenv('HAIDAN_SSL') else 'eWVhaA%3D%3D'
_tracker_ssl = os.getenv('HAIDAN_TRACKER_SSL') if os.getenv('HAIDAN_TRACKER_SSL') else 'eWVhaA%3D%3D'
_multi = os.getenv('HAIDAN_MULTI') if os.getenv('HAIDAN_MULTI') else False

if _multi == False:
Expand All @@ -126,8 +128,8 @@ def main() :
# 初始化
MAGIC_NUM = 0
HEADERS = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36',
'cookie': 'c_secure_login=' + _login + '; c_secure_uid=' + _uid + '; c_secure_pass=' + _pass,
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36',
'cookie': 'c_secure_login=' + _login + '; c_secure_uid=' + _uid + '; c_secure_pass=' + _pass + '; c_secure_tracker_ssl=' + _tracker_ssl + '; c_secure_ssl=' + _ssl,
}

get_status()
Expand Down

0 comments on commit 43385ec

Please sign in to comment.