mirror of
https://github.com/shufflewzc/faker3.git
synced 2026-04-04 08:54:08 +08:00
sync
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# -*- coding:utf-8 -*-
|
# -*- coding:utf-8 -*-
|
||||||
"""
|
"""
|
||||||
cron: 50 * * * *
|
cron: 50 * * * *
|
||||||
new Env('禁用重复任务青龙2.11版本');
|
new Env('禁用重复任务青龙2.12版本');
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
@@ -28,7 +28,7 @@ if not ipport:
|
|||||||
ipport = "localhost:5700"
|
ipport = "localhost:5700"
|
||||||
else:
|
else:
|
||||||
ipport = ipport.lstrip("http://").rstrip("/")
|
ipport = ipport.lstrip("http://").rstrip("/")
|
||||||
sub_str = os.getenv("RES_SUB", "shufflewzc_faker3")
|
sub_str = os.getenv("RES_SUB", "shufflewzc_faker2")
|
||||||
sub_list = sub_str.split("&")
|
sub_list = sub_str.split("&")
|
||||||
res_only = os.getenv("RES_ONLY", True)
|
res_only = os.getenv("RES_ONLY", True)
|
||||||
headers = {
|
headers = {
|
||||||
@@ -155,6 +155,9 @@ def disable_duplicate_tasks(ids: list) -> None:
|
|||||||
|
|
||||||
def get_token() -> str or None:
|
def get_token() -> str or None:
|
||||||
try:
|
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:
|
with open("/ql/config/auth.json", "r", encoding="utf-8") as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
541
jd_lzdz1_customized9.js
Normal file
541
jd_lzdz1_customized9.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user