From 75e4d2b290b57ddeab4ea636f07245acdbd651b2 Mon Sep 17 00:00:00 2001 From: DLmaster Date: Tue, 4 Feb 2025 22:34:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(utils):=20=E4=BF=AE=E5=A4=8D=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=99=A8=E5=BC=82=E5=B8=B8=E5=B9=B6=E8=A6=86=E7=9B=96?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/utils/Updater.py | 7 +++++-- res/version.json | 2 +- resources/version.json | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/utils/Updater.py b/app/utils/Updater.py index 20b3755..c8151d9 100644 --- a/app/utils/Updater.py +++ b/app/utils/Updater.py @@ -225,7 +225,7 @@ class UpdateProcess(QThread): self.info.emit("获取远端代理信息失败,将使用默认代理地址") PROXY_list = [ "", - "https://ghfast.top", + "https://ghfast.top/", "https://gitproxy.click/", "https://cdn.moran233.xyz/", "https://gh.llkk.cc/", @@ -337,7 +337,10 @@ if __name__ == "__main__": if (app_path / "config/config.json").exists(): with (app_path / "config/config.json").open(mode="r", encoding="utf-8") as f: config = json.load(f) - update_type = config["Update"]["UpdateType"] + if "Update" in config and "UpdateType" in config["Update"]: + update_type = config["Update"]["UpdateType"] + else: + update_type = "main" else: update_type = "main" diff --git a/res/version.json b/res/version.json index 6ce50cc..036eaf2 100644 --- a/res/version.json +++ b/res/version.json @@ -4,7 +4,7 @@ "announcement": "\n# 这是一个中转版本,此版本后更换程序架构方式。\n# 由于更新方法无法通用,您需要在完成本次更新后再次检查更新以获取最新版本。\n", "proxy_list":[ "", - "https://ghfast.top", + "https://ghfast.top/", "https://gitproxy.click/", "https://cdn.moran233.xyz/", "https://gh.llkk.cc/", diff --git a/resources/version.json b/resources/version.json index 0d0a94c..7a1e13a 100644 --- a/resources/version.json +++ b/resources/version.json @@ -1,10 +1,10 @@ { "main_version": "4.2.2.2", - "updater_version": "1.1.1.2", + "updater_version": "1.1.1.3", "announcement": "\n## 新增功能\n- 添加用户每日代理次数上限功能 #15\n- 新增代理成功消息推送渠道Server酱与企业微信群机器人推送\n- 添加更新类别可选项\n## 修复BUG\n- 修复自定义基建无法正常使用的问题\n- 修正人工排查文案\n- 修复高级MAA配置序号错位\n- 修复高级用户列表无法配置问题\n- 修复主调度台选项乱动问题\n- 修复更新器文件夹定位问题\n## 程序优化\n- 无", "proxy_list": [ "", - "https://ghfast.top", + "https://ghfast.top/", "https://gitproxy.click/", "https://cdn.moran233.xyz/", "https://gh.llkk.cc/",