mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 02:48:44 +08:00
Update jd_identical.py
This commit is contained in:
parent
9aa03e4e41
commit
4bb8c56963
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user