diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 162a70fd..01315d2b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,7 @@ on: pull_request: branches: [ main ] schedule: - - cron: '0 23 * * *' + - cron: '0 7 * * *' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -38,4 +38,4 @@ jobs: env: COOKIES: ${{ secrets.SMZDM_COOKIE }} SERVERCHAN_SECRETKEY: ${{ secrets.SERVERCHAN_SECRETKEY }} - run: python main.py #>SMZDM_Bot.log \ No newline at end of file + run: python main.py #>SMZDM_Bot.log diff --git a/README.md b/README.md index 443c1f02..404945a5 100644 --- a/README.md +++ b/README.md @@ -43,4 +43,4 @@ first push + 2020-12-12 修复如果没有填写`SERVERCHAN_SECRETKEY`,会在正常签到后报错的问题。 -现在没有`SERVERCHAN_SECRETKEY`也可以正常签到并不报错。 \ No newline at end of file +现在没有`SERVERCHAN_SECRETKEY`也可以正常签到并不报错。 diff --git a/config.py b/config.py deleted file mode 100644 index 0addf88e..00000000 --- a/config.py +++ /dev/null @@ -1,27 +0,0 @@ -""" -请求头 -""" -DEFAULT_HEADERS = { - 'Accept': '*/*', - 'Accept-Encoding': 'gzip, deflate, br', - 'Accept-Language': 'zh-CN,zh;q=0.9', - 'Connection': 'keep-alive', - 'Host': 'zhiyou.smzdm.com', - 'Referer': 'https://www.smzdm.com/', - 'Sec-Fetch-Dest': 'script', - 'Sec-Fetch-Mode': 'no-cors', - 'Sec-Fetch-Site': 'same-site', - 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36', - } - - -""" -调试用 COOKIE -""" -TEST_COOKIE = '' - - -""" -调试用 SERVERCHAN_SECRETKEY -""" -SERVERCHAN_SECRETKEY = '' \ No newline at end of file