fix(utils): 修复更新器异常并覆盖版本
This commit is contained in:
@@ -225,7 +225,7 @@ class UpdateProcess(QThread):
|
|||||||
self.info.emit("获取远端代理信息失败,将使用默认代理地址")
|
self.info.emit("获取远端代理信息失败,将使用默认代理地址")
|
||||||
PROXY_list = [
|
PROXY_list = [
|
||||||
"",
|
"",
|
||||||
"https://ghfast.top",
|
"https://ghfast.top/",
|
||||||
"https://gitproxy.click/",
|
"https://gitproxy.click/",
|
||||||
"https://cdn.moran233.xyz/",
|
"https://cdn.moran233.xyz/",
|
||||||
"https://gh.llkk.cc/",
|
"https://gh.llkk.cc/",
|
||||||
@@ -337,7 +337,10 @@ if __name__ == "__main__":
|
|||||||
if (app_path / "config/config.json").exists():
|
if (app_path / "config/config.json").exists():
|
||||||
with (app_path / "config/config.json").open(mode="r", encoding="utf-8") as f:
|
with (app_path / "config/config.json").open(mode="r", encoding="utf-8") as f:
|
||||||
config = json.load(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:
|
else:
|
||||||
update_type = "main"
|
update_type = "main"
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"announcement": "\n# 这是一个中转版本,此版本后更换程序架构方式。\n# 由于更新方法无法通用,您需要在完成本次更新后再次检查更新以获取最新版本。\n",
|
"announcement": "\n# 这是一个中转版本,此版本后更换程序架构方式。\n# 由于更新方法无法通用,您需要在完成本次更新后再次检查更新以获取最新版本。\n",
|
||||||
"proxy_list":[
|
"proxy_list":[
|
||||||
"",
|
"",
|
||||||
"https://ghfast.top",
|
"https://ghfast.top/",
|
||||||
"https://gitproxy.click/",
|
"https://gitproxy.click/",
|
||||||
"https://cdn.moran233.xyz/",
|
"https://cdn.moran233.xyz/",
|
||||||
"https://gh.llkk.cc/",
|
"https://gh.llkk.cc/",
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"main_version": "4.2.2.2",
|
"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- 无",
|
"announcement": "\n## 新增功能\n- 添加用户每日代理次数上限功能 #15\n- 新增代理成功消息推送渠道Server酱与企业微信群机器人推送\n- 添加更新类别可选项\n## 修复BUG\n- 修复自定义基建无法正常使用的问题\n- 修正人工排查文案\n- 修复高级MAA配置序号错位\n- 修复高级用户列表无法配置问题\n- 修复主调度台选项乱动问题\n- 修复更新器文件夹定位问题\n## 程序优化\n- 无",
|
||||||
"proxy_list": [
|
"proxy_list": [
|
||||||
"",
|
"",
|
||||||
"https://ghfast.top",
|
"https://ghfast.top/",
|
||||||
"https://gitproxy.click/",
|
"https://gitproxy.click/",
|
||||||
"https://cdn.moran233.xyz/",
|
"https://cdn.moran233.xyz/",
|
||||||
"https://gh.llkk.cc/",
|
"https://gh.llkk.cc/",
|
||||||
|
|||||||
Reference in New Issue
Block a user