diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index fcb1472..646263d 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -6,7 +6,7 @@ on: pull_request: branches: [ master ] schedule: - - cron: '0 22,14 * * *' + - cron: '0 18,8 * * *' watch: types: started @@ -27,6 +27,7 @@ jobs: user='${{ secrets.USER }}' pwd='${{ secrets.PWD }}' + key='${{ secrets.KEY }}' user_list=() pwd_list=() @@ -58,5 +59,6 @@ jobs: python3 checkin.py < 天翼云盘自动签到 + 抽奖 -***源代码来自:https://51.ruyo.net/16050.html,仅做了一些修改*** +***源代码来自:https://51.ruyo.net/16050.html +仅做了一些修改*** ## Github Actions 部署指南 @@ -11,7 +12,7 @@ ### 二、设置账号密码 -添加名为 **USER**、**PWD** 的变量,值分别为 **账号(仅支持手机号)**、**密码 ** +添加名为 **USER**、**PWD** 、**KEY**(非必需,微信推送运行结果用)的变量,值分别为 **账号(仅支持手机号)**、**密码 **、** Server酱的SCKEY** > Settings-->Secrets-->New secret diff --git a/checkin.py b/checkin.py index 97d8667..a908f5a 100644 --- a/checkin.py +++ b/checkin.py @@ -11,10 +11,11 @@ username = "" password = "" - +key= "" #server酱推送 if(username == "" or password == ""): username = input("账号:") password = input("密码:") + key = input() def main(): @@ -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 }) @@ -176,3 +177,6 @@ def login(username, password): if __name__ == "__main__": main() + + +