From 928a7733e09cc2f2a4ee566d4cc1989556509724 Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 30 Mar 2022 11:37:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E9=9D=92=E9=BE=992.12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_identicalnew.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jd_identicalnew.py b/jd_identicalnew.py index 378054e..ce0886b 100644 --- a/jd_identicalnew.py +++ b/jd_identicalnew.py @@ -1,7 +1,7 @@ # -*- coding:utf-8 -*- """ cron: 50 * * * * -new Env('禁用重复任务青龙2.11版本'); +new Env('禁用重复任务青龙2.12版本'); """ import json @@ -155,6 +155,9 @@ def disable_duplicate_tasks(ids: list) -> None: def get_token() -> str or None: try: + with open("/ql/data/config/auth.json", "r", encoding="utf-8") as f: + data = json.load(f) + except FileNotFoundError: with open("/ql/config/auth.json", "r", encoding="utf-8") as f: data = json.load(f) except Exception: