diff --git a/AutoConfig.py b/AutoConfig.py index 3db385b..7525c68 100755 --- a/AutoConfig.py +++ b/AutoConfig.py @@ -146,7 +146,7 @@ class InformationWindow(): about = f"

关于“{choose}”的介绍

\n

暂无此程序的介绍

" try: 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 = "" except: fenlists = [0, 0, 0, 0, 0] @@ -166,19 +166,19 @@ class InformationWindow(): if maxHead > 5: for i in range(end): if webeng: - starHtml += f"\n" + starHtml += f"\n" else: starHtml += f"\n" else: for i in range(maxHead): if webeng: - starHtml += f"\n" + starHtml += f"\n" else: starHtml += f"\n" head = maxHead for i in range(head, end): if webeng: - starHtml += f"" + starHtml += f"" else: starHtml += f"" about += f"\n

评分情况

\n

{starHtml}

\n

{tipsInfo}

" @@ -260,7 +260,7 @@ class ProgramRunStatusShow(): fileName = i[1] break 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 = "" except: #traceback.print_exc() @@ -318,7 +318,7 @@ class ProgramRunStatusShow(): else: # 显示最新的3条评论 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 print(all) if all < 3: @@ -329,7 +329,7 @@ class ProgramRunStatusShow(): uploadList = [] for i in range(all - 1, start - 1, -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) uploadList.append([f"用户{i + 1}", i + 1, info]) Add(uploadList) @@ -386,7 +386,7 @@ def UpdateFen(): uploadList = [] for i in range(now + 2, now - 1, -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) uploadList.append([f"用户{i + 1}", i + 1, info]) #ProgramRunStatusShow.pingLunLayout.removeItem(ProgramRunStatusShow.pingLunLayout.itemAt(2))