From 2e4b265872c58699b4f573fd3e0b88c43248d644 Mon Sep 17 00:00:00 2001 From: cara0201 <65109139+cara0201@users.noreply.github.com> Date: Tue, 27 Sep 2022 14:42:52 +0800 Subject: [PATCH 1/7] Update automate.yml --- .github/workflows/automate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/automate.yml b/.github/workflows/automate.yml index 325f9ff..6bf6e9a 100644 --- a/.github/workflows/automate.yml +++ b/.github/workflows/automate.yml @@ -6,7 +6,7 @@ on: pull_request: branches: [ master ] schedule: - - cron: '0 2 * * *' + - cron: '43 14 * * *' workflow_dispatch: jobs: From fd8c4c309c8876704e8670a33db3adf5dcf5eb15 Mon Sep 17 00:00:00 2001 From: cara0201 <65109139+cara0201@users.noreply.github.com> Date: Tue, 27 Sep 2022 14:45:24 +0800 Subject: [PATCH 2/7] Update automate.yml --- .github/workflows/automate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/automate.yml b/.github/workflows/automate.yml index 6bf6e9a..08ea5e1 100644 --- a/.github/workflows/automate.yml +++ b/.github/workflows/automate.yml @@ -6,7 +6,7 @@ on: pull_request: branches: [ master ] schedule: - - cron: '43 14 * * *' + - cron: '46 6 * * *' workflow_dispatch: jobs: From 4f03a1499ae0afa001dce3c29b32b0165b6b00b7 Mon Sep 17 00:00:00 2001 From: cara0201 <65109139+cara0201@users.noreply.github.com> Date: Tue, 27 Sep 2022 14:48:25 +0800 Subject: [PATCH 3/7] Update automate.yml --- .github/workflows/automate.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/automate.yml b/.github/workflows/automate.yml index 08ea5e1..1b8872c 100644 --- a/.github/workflows/automate.yml +++ b/.github/workflows/automate.yml @@ -6,7 +6,7 @@ on: pull_request: branches: [ master ] schedule: - - cron: '46 6 * * *' + - cron: '0 */12 * * *' workflow_dispatch: jobs: @@ -14,6 +14,7 @@ jobs: build: name: Build runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id steps: - name: Check out code From 37b99b808121d95ed48b8c590a6396eb400fa701 Mon Sep 17 00:00:00 2001 From: cara0201 <65109139+cara0201@users.noreply.github.com> Date: Tue, 27 Sep 2022 15:06:40 +0800 Subject: [PATCH 4/7] Update automate.yml --- .github/workflows/automate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/automate.yml b/.github/workflows/automate.yml index 1b8872c..737be1b 100644 --- a/.github/workflows/automate.yml +++ b/.github/workflows/automate.yml @@ -6,7 +6,7 @@ on: pull_request: branches: [ master ] schedule: - - cron: '0 */12 * * *' + - cron: '08/10 * * * *' workflow_dispatch: jobs: From 9cb0c0b28f8bce0b24c7bb00a1cb588c6ea4bc9e Mon Sep 17 00:00:00 2001 From: cara0201 <65109139+cara0201@users.noreply.github.com> Date: Tue, 27 Sep 2022 15:58:11 +0800 Subject: [PATCH 5/7] Update automate.yml --- .github/workflows/automate.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/automate.yml b/.github/workflows/automate.yml index 737be1b..1aeb8dc 100644 --- a/.github/workflows/automate.yml +++ b/.github/workflows/automate.yml @@ -14,7 +14,6 @@ jobs: build: name: Build runs-on: ubuntu-latest - if: github.event.repository.owner.id == github.event.sender.id steps: - name: Check out code From 3cac9ef2a58c3ae5c785d22b8a7c6040763eca19 Mon Sep 17 00:00:00 2001 From: cara0201 <65109139+cara0201@users.noreply.github.com> Date: Mon, 7 Nov 2022 15:16:10 +0800 Subject: [PATCH 6/7] Update main.py --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 30bb147..341550c 100644 --- a/main.py +++ b/main.py @@ -12,6 +12,8 @@ import numpy from PIL import Image from PIL import ImageEnhance +import requests +from requests.packages import urllib3 from requests import session, post, adapters adapters.DEFAULT_RETRIES = 5 @@ -139,6 +141,7 @@ def check(self): 检查 """ print("◉检测是否已提交") + urllib3.disable_warnings() get_info = self.session.get( 'https://zlapp.fudan.edu.cn/ncov/wap/fudan/get-info') last_info = get_info.json() @@ -282,4 +285,4 @@ def get_account(): daily_fudan.checkin() # 再检查一遍 daily_fudan.check() - daily_fudan.close(1) \ No newline at end of file + daily_fudan.close(1) From c715a58ad15562e8d7c473b6e6eeb8fca2736d8a Mon Sep 17 00:00:00 2001 From: cara0201 <65109139+cara0201@users.noreply.github.com> Date: Mon, 7 Nov 2022 15:44:49 +0800 Subject: [PATCH 7/7] Update automate.yml --- .github/workflows/automate.yml | 48 +++++++++++++++++----------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/automate.yml b/.github/workflows/automate.yml index 1aeb8dc..f3a596f 100644 --- a/.github/workflows/automate.yml +++ b/.github/workflows/automate.yml @@ -1,30 +1,30 @@ -name: Go +# name: Go -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - schedule: - - cron: '08/10 * * * *' - workflow_dispatch: +# on: +# push: +# branches: [ master ] +# pull_request: +# branches: [ master ] +# schedule: +# - cron: '08/10 * * * *' +# workflow_dispatch: -jobs: +# jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: +# build: +# name: Build +# runs-on: ubuntu-latest +# steps: - - name: Check out code - uses: actions/checkout@v2 +# - name: Check out code +# uses: actions/checkout@v2 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install opencv-python==4.5.4.60 - pip install easyocr pillow numpy - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi +# - name: Install dependencies +# run: | +# python -m pip install --upgrade pip +# pip install opencv-python==4.5.4.60 +# pip install easyocr pillow numpy +# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: run - run: STD_ID='${{ secrets.STD_ID }}' PASSWORD='${{ secrets.PASSWORD }}' python3 main.py +# - name: run +# run: STD_ID='${{ secrets.STD_ID }}' PASSWORD='${{ secrets.PASSWORD }}' python3 main.py