diff --git a/ProgramFen.py b/ProgramFen.py index 0c432c9..f583d3f 100755 --- a/ProgramFen.py +++ b/ProgramFen.py @@ -3,7 +3,7 @@ import os import sys import base64 import traceback -import req as requests +import requests import PyQt5.QtGui as QtGui import PyQt5.QtCore as QtCore import PyQt5.QtWidgets as QtWidgets @@ -14,7 +14,7 @@ class ProgramRunStatusShow(): try: fenlists = [] for i in range(6): - fenlists.append(int(requests.get(base64.b64decode("aHR0cHM6Ly9jb2RlLmdpdGxpbmsub3JnLmNuL2dmZGdkLXhpLW9yZy93aW5lLXJ1bm5lci1kb3dubG9hZHMtb2YtcnVubmVyL3Jhdy9icmFuY2gvbWFzdGVyL0Zlbi9GZW4=").decode("utf-8") + f"{i}.txt").text)) + fenlists.append(int(requests.get(base64.b64decode("aHR0cHM6Ly9jb2RlLmdpdGxpbmsub3JnLmNuL2dmZGdkLXhpLW9yZy93aW5lLXJ1bm5lci1kb3dubG9hZHMtb2YtcnVubmVyL3Jhdy9icmFuY2gvbWFzdGVyL0Zlbi1VRW5naW5lL0Zlbg==").decode("utf-8") + f"{i}-UEngine.txt").text)) tipsInfo = "" except: traceback.print_exc() @@ -26,7 +26,7 @@ class ProgramRunStatusShow(): for i in fenlists: allNumber += i try: - tipsInfo = "" + #tipsInfo = "" for i in range(len(fenlists)): tipsInfo += f"有 {fenlists[i] / allNumber * 100}% 的用户选择了 {i} 分({fenlists[i]}/{allNumber})\n" maxNumber = max(fenlists) / allNumber * 100 @@ -108,7 +108,7 @@ class ProgramRunStatusUpload(): def Upload(): try: - QtWidgets.QMessageBox.information(ProgramRunStatusUpload.msgWindow, QtCore.QCoreApplication.translate("U", "提示"), requests.get(f"http://120.25.153.144/spark-deepin-wine-runner/Install.php?Version=Fen{ProgramRunStatusUpload.fen.currentIndex()}").json()["Error"]) + QtWidgets.QMessageBox.information(ProgramRunStatusUpload.msgWindow, QtCore.QCoreApplication.translate("U", "提示"), requests.get(f"http://120.25.153.144/spark-deepin-wine-runner/Install.php?Version=Fen{ProgramRunStatusUpload.fen.currentIndex()}-UEngine").json()["Error"]) except: traceback.print_exc() QtWidgets.QMessageBox.critical(ProgramRunStatusUpload.msgWindow, QtCore.QCoreApplication.translate("U", "错误"), QtCore.QCoreApplication.translate("U", "数据上传失败!")) diff --git a/__pycache__/updatekiller.cpython-37.pyc b/__pycache__/updatekiller.cpython-37.pyc new file mode 100644 index 0000000..1e81aad Binary files /dev/null and b/__pycache__/updatekiller.cpython-37.pyc differ diff --git a/mainwindow.py b/mainwindow.py index 7b16472..124f4a9 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -1959,7 +1959,7 @@ hm1_1.triggered.connect(lambda: webbrowser.open_new_tab("https://gitee.com/gfdgd helpOpenProgramUrl.triggered.connect(OpenProgramURL) uengineRunnerSearch.triggered.connect(lambda: webbrowser.open_new_tab("https://gfdgd-xi.github.io/uengine-runner-info/")) makerWebsize.triggered.connect(lambda: webbrowser.open_new_tab("https://gfdgd-xi.github.io")) -helpForum.triggered.connect(lambda: webbrowser.open_new_tab("https://gfdgdxi.flarum.cloud/")) +helpForum.triggered.connect(lambda: webbrowser.open_new_tab("https://bbs.racoongx.cn/")) helpUengineRunnerBugUpload.triggered.connect(UengineRunnerBugUpload) helpShowHelp.triggered.connect(ShowHelp) helpRunnerUpdate.triggered.connect(UpdateWindow.ShowWindow) diff --git a/uengine-runner-update-bug b/uengine-runner-update-bug index 544d66c..a975ab9 100755 --- a/uengine-runner-update-bug +++ b/uengine-runner-update-bug @@ -51,7 +51,7 @@ def OpenGitlinkIssues(): webbrowser.open_new_tab("https://www.gitlink.org.cn/gfdgd_xi/uengine-runner/issues") def OpenProgramForum(): - webbrowser.open_new_tab("https://gfdgdxi.flarum.cloud/t/bugs") + webbrowser.open_new_tab("https://bbs.racoongx.cn/t/bugs") # 获取用户主目录 def get_home()->"获取用户主目录":