2022-12-07 13:18:49 +08:00
|
|
|
#!/usr/bin/env python3
|
2023-11-11 10:04:00 +08:00
|
|
|
import os
|
2022-12-07 13:18:49 +08:00
|
|
|
import sys
|
2023-11-11 10:04:00 +08:00
|
|
|
import json
|
2022-12-07 13:18:49 +08:00
|
|
|
import base64
|
|
|
|
import requests
|
2023-11-11 10:04:00 +08:00
|
|
|
# 读取版本号
|
|
|
|
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
|
|
|
with open(f"{programPath}/information.json") as file:
|
|
|
|
version = json.loads(file.read())["Version"]
|
2024-07-26 20:36:30 +08:00
|
|
|
print(requests.get(base64.b64decode("aHR0cHM6Ly9zb3VyY2Vmb3JnZS5uZXQvcHJvamVjdHMvZGVlcC13aW5lLXJ1bm5lci13aW5lLWRvd25sb2FkL2ZpbGVzL2Rvd25sb2FkLXRpbWUv").decode("utf-8")
|
|
|
|
+ version
|
|
|
|
+ base64.b64decode("L2Rvd25sb2Fk").decode("utf-8")
|
|
|
|
).text)
|