From 84f0eefc27094858a7c2bf1651858bc39a36220e Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Thu, 29 Jun 2023 17:03:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86gitlink=E6=BA=90=E6=94=B9=E4=B8=BAgite?= =?UTF-8?q?e=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wine/installwine | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wine/installwine b/wine/installwine index 220f04d..acf4de5 100755 --- a/wine/installwine +++ b/wine/installwine @@ -77,7 +77,7 @@ class Ui_MainWindow(object): _translate = QtCore.QCoreApplication.translate self.menu = MainWindow.menuBar() self.changeSources = self.menu.addMenu(_translate("MainWindow", "更换源")) - self.gitlinkAction = QtWidgets.QAction(_translate("MainWindow", "Gitlink 源(推荐)")) + self.gitlinkAction = QtWidgets.QAction(_translate("MainWindow", "Gitee 源(推荐)")) self.kgithubAction = QtWidgets.QAction(_translate("MainWindow", "KGithub 源")) self.ipv6Action = QtWidgets.QAction(_translate("MainWindow", "Github 源1(国内访问不稳定)")) self.githubAction = QtWidgets.QAction(_translate("MainWindow", "Github 源2(国内访问不稳定)")) @@ -177,7 +177,9 @@ def ReadInternetInformation(): global internetJsonList # C++ 版本是用 curl 的,考虑到 Python 用 requests 反而方便,于是不用 curl try: - internetJsonList = json.loads(requests.get(f"{internetWineSource}/information.json").text) + text = requests.get(f"{internetWineSource}/information.json").text + print(text) + internetJsonList = json.loads(text) except: traceback.print_exc() QtWidgets.QMessageBox.critical(window, "错误", "无法连接服务器!") @@ -360,7 +362,7 @@ if __name__ == "__main__": internetWineSourceList = [ "http://wine.wine-runner.gfdgdxi.top/", "https://kgithub.com/gfdgd-xi/wine-mirrors-websize/raw/master/", - "https://code.gitlink.org.cn/gfdgd_xi/wine-mirrors/raw/branch/master/", + "https://gitee.com/gfdgd-xi/wine-mirrors-websize/raw/master/", "https://github.com/gfdgd-xi/wine-mirrors-websize/raw/master/", "http://127.0.0.1/wine-mirrors/" # 本地测试源 ]