From cf6a092602b531da0a665c54092a8b1363c33216 Mon Sep 17 00:00:00 2001 From: Pesy Wu Date: Fri, 3 Mar 2023 17:48:39 +0800 Subject: [PATCH] qinglong panel bug fixed --- qinglong/qinglong.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qinglong/qinglong.py b/qinglong/qinglong.py index d4b2b43..475786f 100644 --- a/qinglong/qinglong.py +++ b/qinglong/qinglong.py @@ -1,7 +1,7 @@ import sys import requests as r import json -import telepot +import os tele_enable = False sc_enable = False @@ -11,7 +11,7 @@ current = 'https://n.cg.163.com/api/v2/client-settings/@current' -cookies = sys.argv[1].split('#') +cookies = os.environ.get('wyycg_cookies').split('#') if cookies == "" or cookies == []: print('[网易云游戏自动签到]未设置cookie,正在退出……')