修改接口地址
This commit is contained in:
parent
9c86d23d31
commit
f716c22e76
|
@ -146,7 +146,7 @@ class InformationWindow():
|
||||||
about = f"<h1>关于“{choose}”的介绍</h1>\n<p>暂无此程序的介绍</p>"
|
about = f"<h1>关于“{choose}”的介绍</h1>\n<p>暂无此程序的介绍</p>"
|
||||||
try:
|
try:
|
||||||
import requests as r
|
import requests as r
|
||||||
fenlists = requests.get(base64.b64decode("aHR0cHM6Ly9jb2RlLmdpdGxpbmsub3JnLmNuL2dmZGdkLXhpLW9yZy93aW5lLXJ1bm5lci1kb3dubG9hZHMtb2YtcnVubmVyL3Jhdy9icmFuY2gvbWFzdGVyL0Jhc2hBcHBGZW4v").decode("utf-8") + urllib.request.quote(fileName) + base64.b64decode("L2FsbC5qc29u").decode("utf-8"), timeout=1000).json()
|
fenlists = requests.get("http://data.download.gfdgdxi.top/BashAppFen/" + urllib.request.quote(fileName) + base64.b64decode("L2FsbC5qc29u").decode("utf-8"), timeout=1000).json()
|
||||||
tipsInfo = ""
|
tipsInfo = ""
|
||||||
except:
|
except:
|
||||||
fenlists = [0, 0, 0, 0, 0]
|
fenlists = [0, 0, 0, 0, 0]
|
||||||
|
@ -166,19 +166,19 @@ class InformationWindow():
|
||||||
if maxHead > 5:
|
if maxHead > 5:
|
||||||
for i in range(end):
|
for i in range(end):
|
||||||
if webeng:
|
if webeng:
|
||||||
starHtml += f"<img src='https://code.gitlink.org.cn/gfdgd_xi/deep-wine-runner/raw/branch/main/Icon/BadStar.svg' width=50>\n"
|
starHtml += f"<img src='http://wine-runner.gfdgdxi.top/Icon/BadStar.svg' width=50>\n"
|
||||||
else:
|
else:
|
||||||
starHtml += f"<img src='{programPath}/Icon/BadStar.svg' width=50>\n"
|
starHtml += f"<img src='{programPath}/Icon/BadStar.svg' width=50>\n"
|
||||||
else:
|
else:
|
||||||
for i in range(maxHead):
|
for i in range(maxHead):
|
||||||
if webeng:
|
if webeng:
|
||||||
starHtml += f"<img src='https://code.gitlink.org.cn/gfdgd_xi/deep-wine-runner/raw/branch/main/Icon/Star.svg' width=50>\n"
|
starHtml += f"<img src='http://wine-runner.gfdgdxi.top/Icon/Star.svg' width=50>\n"
|
||||||
else:
|
else:
|
||||||
starHtml += f"<img src='{programPath}/Icon/Star.svg' width=50>\n"
|
starHtml += f"<img src='{programPath}/Icon/Star.svg' width=50>\n"
|
||||||
head = maxHead
|
head = maxHead
|
||||||
for i in range(head, end):
|
for i in range(head, end):
|
||||||
if webeng:
|
if webeng:
|
||||||
starHtml += f"<img src='https://code.gitlink.org.cn/gfdgd_xi/deep-wine-runner/raw/branch/main/Icon/UnStar.svg' width=50>"
|
starHtml += f"<img src='http://wine-runner.gfdgdxi.top/Icon/UnStar.svg' width=50>"
|
||||||
else:
|
else:
|
||||||
starHtml += f"<img src='{programPath}/Icon/UnStar.svg' width=50>"
|
starHtml += f"<img src='{programPath}/Icon/UnStar.svg' width=50>"
|
||||||
about += f"\n<hr/><h1>评分情况</h1>\n<p align='center'>{starHtml}</p>\n<p align='center'>{tipsInfo}</p>"
|
about += f"\n<hr/><h1>评分情况</h1>\n<p align='center'>{starHtml}</p>\n<p align='center'>{tipsInfo}</p>"
|
||||||
|
@ -260,7 +260,7 @@ class ProgramRunStatusShow():
|
||||||
fileName = i[1]
|
fileName = i[1]
|
||||||
break
|
break
|
||||||
try:
|
try:
|
||||||
fenlists = requests.get(base64.b64decode("aHR0cHM6Ly9jb2RlLmdpdGxpbmsub3JnLmNuL2dmZGdkLXhpLW9yZy93aW5lLXJ1bm5lci1kb3dubG9hZHMtb2YtcnVubmVyL3Jhdy9icmFuY2gvbWFzdGVyL0Jhc2hBcHBGZW4v").decode("utf-8") + urllib.request.quote(fileName) + base64.b64decode("L2FsbC5qc29u").decode("utf-8")).json()
|
fenlists = requests.get("http://data.download.gfdgdxi.top/BashAppFen/" + urllib.request.quote(fileName) + base64.b64decode("L2FsbC5qc29u").decode("utf-8")).json()
|
||||||
tipsInfo = ""
|
tipsInfo = ""
|
||||||
except:
|
except:
|
||||||
#traceback.print_exc()
|
#traceback.print_exc()
|
||||||
|
@ -318,7 +318,7 @@ class ProgramRunStatusShow():
|
||||||
else:
|
else:
|
||||||
# 显示最新的3条评论
|
# 显示最新的3条评论
|
||||||
try:
|
try:
|
||||||
all = int(requests.get(f"{base64.b64decode('aHR0cHM6Ly9jb2RlLmdpdGxpbmsub3JnLmNuL2dmZGdkLXhpLW9yZy9iYXNocGlubHVuL3Jhdy9icmFuY2gvbWFzdGVyLw==').decode('utf-8')}{urllib.request.quote(fileName)}/data.txt").text)
|
all = int(requests.get(f"http://bashpinlun.gfdgdxi.top/{urllib.request.quote(fileName)}/data.txt").text)
|
||||||
now = all - 3
|
now = all - 3
|
||||||
print(all)
|
print(all)
|
||||||
if all < 3:
|
if all < 3:
|
||||||
|
@ -329,7 +329,7 @@ class ProgramRunStatusShow():
|
||||||
uploadList = []
|
uploadList = []
|
||||||
for i in range(all - 1, start - 1, -1):
|
for i in range(all - 1, start - 1, -1):
|
||||||
print(f"第 {i + 1} 条评论:")
|
print(f"第 {i + 1} 条评论:")
|
||||||
info = requests.get(f"{base64.b64decode('aHR0cHM6Ly9jb2RlLmdpdGxpbmsub3JnLmNuL2dmZGdkLXhpLW9yZy9iYXNocGlubHVuL3Jhdy9icmFuY2gvbWFzdGVyLw==').decode('utf-8')}{urllib.request.quote(fileName)}/pf-{i}.txt").text.strip()
|
info = requests.get(f"http://bashpinlun.gfdgdxi.top/{urllib.request.quote(fileName)}/pf-{i}.txt").text.strip()
|
||||||
print(info)
|
print(info)
|
||||||
uploadList.append([f"用户{i + 1}", i + 1, info])
|
uploadList.append([f"用户{i + 1}", i + 1, info])
|
||||||
Add(uploadList)
|
Add(uploadList)
|
||||||
|
@ -386,7 +386,7 @@ def UpdateFen():
|
||||||
uploadList = []
|
uploadList = []
|
||||||
for i in range(now + 2, now - 1, -1):
|
for i in range(now + 2, now - 1, -1):
|
||||||
print(f"第 {i + 1} 条评论:")
|
print(f"第 {i + 1} 条评论:")
|
||||||
info = requests.get(f"https://code.gitlink.org.cn/gfdgd-xi-org/bashpinlun/raw/branch/master/{urllib.request.quote(fileName)}/pf-{i}.txt").text.strip()
|
info = requests.get(f"http://bashpinlun.gfdgdxi.top/{urllib.request.quote(fileName)}/pf-{i}.txt").text.strip()
|
||||||
print(info)
|
print(info)
|
||||||
uploadList.append([f"用户{i + 1}", i + 1, info])
|
uploadList.append([f"用户{i + 1}", i + 1, info])
|
||||||
#ProgramRunStatusShow.pingLunLayout.removeItem(ProgramRunStatusShow.pingLunLayout.itemAt(2))
|
#ProgramRunStatusShow.pingLunLayout.removeItem(ProgramRunStatusShow.pingLunLayout.itemAt(2))
|
||||||
|
|
Loading…
Reference in New Issue