Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
branches: [ master ]
schedule:
- cron: '0 22,14 * * *'
- cron: '0 18,8 * * *'
watch:
types: started

Expand All @@ -27,6 +27,7 @@ jobs:

user='${{ secrets.USER }}'
pwd='${{ secrets.PWD }}'
key='${{ secrets.KEY }}'

user_list=()
pwd_list=()
Expand Down Expand Up @@ -58,5 +59,6 @@ jobs:
python3 checkin.py <<EOF
${user_list[$i]}
${pwd_list[$i]}
${key}
EOF
done
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# 天翼云盘自动签到 + 抽奖
> 天翼云盘自动签到 + 抽奖

***源代码来自:https://51.ruyo.net/16050.html,仅做了一些修改***
***源代码来自:https://51.ruyo.net/16050.html
仅做了一些修改***

## Github Actions 部署指南

Expand All @@ -11,7 +12,7 @@


### 二、设置账号密码
添加名为 **USER**、**PWD** 的变量,值分别为 **账号(仅支持手机号)**、**密码 **
添加名为 **USER**、**PWD** 、**KEY**(非必需,微信推送运行结果用)的变量,值分别为 **账号(仅支持手机号)**、**密码 **、** Server酱的SCKEY**

> Settings-->Secrets-->New secret

Expand Down
8 changes: 6 additions & 2 deletions checkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@

username = ""
password = ""

key= "" #server酱推送
if(username == "" or password == ""):
username = input("账号:")
password = input("密码:")
key = input()


def main():
Expand Down Expand Up @@ -80,7 +81,7 @@ def main():
{cjStr2}
```
"""
requests.post('https://sc.ftqq.com/SCU74663T20ed2886a458ab9e3be21f3de4e8fd965e0b13de3ff1b.send', data={
requests.post('https://sc.ftqq.com/'+key+'.send', data={
'text':bj_time.strftime("%Y-%m-%d %H:%M:%S %p")+'天翼云盘打卡',
'desp':desp
})
Expand Down Expand Up @@ -176,3 +177,6 @@ def login(username, password):

if __name__ == "__main__":
main()