Update jd_identical.py

This commit is contained in:
Hans155922
2022-08-11 07:03:32 +08:00
committed by GitHub
parent 9aa03e4e41
commit 4bb8c56963

View File

@@ -157,8 +157,7 @@ def get_token() -> str or None:
url = f"http://{ipport}/api/system"
response = requests.get(url=url)
data = json.loads(response.content.decode("utf-8"))
datas = data.get("data")
version=datas.get("version")
version=data.get("data").get("version")
if int(version.split('.')[0])>=2:
if int(version.split('.')[1])>=12:
with open("/ql/data/config/auth.json", "r", encoding="utf-8") as f: