Browse Source

添加一言

pull/15/head
张洛 3 years ago
parent
commit
b1691fd362
  1. 4
      bilibili.py
  2. 2
      getENV.py

4
bilibili.py

@ -330,6 +330,8 @@ class BiliBiliCheckIn(object): @@ -330,6 +330,8 @@ class BiliBiliCheckIn(object):
if __name__ == "__main__":
datas = json.loads(getENv().read())
getENv()
with open("/ql/config/check.json", "r", encoding="utf-8") as f:
datas = json.loads(f.read())
_check_item = datas.get("BILIBILI_COOKIE_LIST", [])[0]
BiliBiliCheckIn(check_item=_check_item).main()

2
getENV.py

@ -9,8 +9,6 @@ def getENv(): @@ -9,8 +9,6 @@ def getENv():
print('成功 当前环境为青龙面板继续执行')
if os.path.exists(config_file):
print('已找到配置文件')
with open(config_file, 'r', encoding='utf8') as f:
return f
else:
print('未找到配置文件\n')
print('请添加/ql/config/check.json')

Loading…
Cancel
Save