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"]
|
|
|
|
print(requests.get(base64.b64decode("aHR0cDovLzEyMC4yNS4xNTMuMTQ0L3NwYXJrLWRlZXBpbi13aW5lLXJ1bm5lci9JbnN0YWxsLnBocD9WZXJzaW9uPQ==").decode("utf-8") + version).text)
|