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):
if __name__ == "__main__": 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] _check_item = datas.get("BILIBILI_COOKIE_LIST", [])[0]
BiliBiliCheckIn(check_item=_check_item).main() BiliBiliCheckIn(check_item=_check_item).main()

2
getENV.py

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

Loading…
Cancel
Save