优化安装量统计机制

This commit is contained in:
gfdgd_xi 2023-11-11 10:08:09 +08:00
parent 691d140db5
commit 414681fc0b
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#!/usr/bin/env python3
import os
import sys
import json
import base64
import requests
print("""浣溪沙
@ -8,4 +10,7 @@ print("""浣溪沙
print("")
print("听一支新曲喝一杯美酒,还是去年的天气旧日的亭台,西落的夕阳何时再回来?那花儿落去我也无可奈何,那归来的燕子似曾相识,在小园的花径上独自徘徊。")
print("================================")
print(requests.get(base64.b64decode("aHR0cDovLzEyMC4yNS4xNTMuMTQ0L3VlbmdpbmUtcnVubmVyL0luc3RhbGwucGhwP1ZlcnNpb249").decode("utf-8") + sys.argv[1]).text)
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("aHR0cDovLzEyMC4yNS4xNTMuMTQ0L3VlbmdpbmUtcnVubmVyL0luc3RhbGwucGhwP1ZlcnNpb249").decode("utf-8") + version).text)