提交 b0c21b91 编辑于 作者: dwxh's avatar dwxh 🕸
浏览文件

fffffffffix

上级 beaa36a0
......@@ -45,7 +45,7 @@ def init_ql_session():
if not QL: return
with open("/ql/config/auth.json", "r", encoding="utf-8") as f:
cid = CaseInsensitiveDict()
cid['Authorization'] = f"Bearer {json.load(f)['token']}"
cid['Authorization'] = f"Bearer {json.load(f).get('token')}"
ql_session.headers = cid
......@@ -241,5 +241,5 @@ async def cron_add(conv, file_path, msg, markup):
else:
await conv.send_message(f"添加定时任务失败!{res}")
init_ql_session()
if QL:
init_ql_session()
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册