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/",