From 5980d9c42ce131ad4542ecc12be547c0aa4e0603 Mon Sep 17 00:00:00 2001 From: huiyadanli Date: Sat, 25 Jul 2020 12:51:36 +0800 Subject: [PATCH] [+] Version 0.9 --- RevokeMsgPatcher/FormMain.cs | 7 +++---- RevokeMsgPatcher/Properties/AssemblyInfo.cs | 4 ++-- RevokeMsgPatcher/Utils/HttpUtil.cs | 6 +++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/RevokeMsgPatcher/FormMain.cs b/RevokeMsgPatcher/FormMain.cs index 0c06c2d..d268df4 100644 --- a/RevokeMsgPatcher/FormMain.cs +++ b/RevokeMsgPatcher/FormMain.cs @@ -74,7 +74,6 @@ namespace RevokeMsgPatcher txtPath.Text = modifier.FindInstallPath(); // 显示是否能够备份还原、版本和功能 InitEditorsAndUI(txtPath.Text); - } private void InitEditorsAndUI(string path) @@ -121,7 +120,7 @@ namespace RevokeMsgPatcher EnableAllButton(false); // a.重新初始化编辑器 modifier.InitEditors(txtPath.Text); - // b.获取选择的功能 (精准匹配返回null) + // b.获取选择的功能 (精准匹配返回null) // TODO 此处逻辑可以优化 不可完全信任UI信息 List categories = UIController.GetCategoriesFromPanel(panelCategories); if (categories != null && categories.Count == 0) { @@ -250,8 +249,8 @@ namespace RevokeMsgPatcher private async void FormMain_Load(object sender, EventArgs e) { // 异步获取最新的补丁信息 - //string json = await HttpUtil.GetPatchJsonAsync(); - string json = null; // local test + string json = await HttpUtil.GetPatchJsonAsync(); + //string json = null; // local test if (string.IsNullOrEmpty(json)) { lblUpdatePachJson.Text = "[ 获取最新补丁信息失败 ]"; diff --git a/RevokeMsgPatcher/Properties/AssemblyInfo.cs b/RevokeMsgPatcher/Properties/AssemblyInfo.cs index 9a2d027..9a08c5c 100644 --- a/RevokeMsgPatcher/Properties/AssemblyInfo.cs +++ b/RevokeMsgPatcher/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 // 方法是按如下所示使用“*”: : //[assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.8")] -[assembly: AssemblyFileVersion("0.8")] +[assembly: AssemblyVersion("0.9")] +[assembly: AssemblyFileVersion("0.9")] diff --git a/RevokeMsgPatcher/Utils/HttpUtil.cs b/RevokeMsgPatcher/Utils/HttpUtil.cs index 8100617..08e2ca3 100644 --- a/RevokeMsgPatcher/Utils/HttpUtil.cs +++ b/RevokeMsgPatcher/Utils/HttpUtil.cs @@ -20,12 +20,12 @@ namespace RevokeMsgPatcher.Utils /// 已经弃用的路径 /// https://swordmaker-hauls-51508.netlify.com/i/revokemsg/05.json /// https://huiyadanli.github.io/i/revokemsg/05.json - /// https://huiyadanli.coding.net/p/RevokeMsgPatcher/d/RevokeMsgPatcher/git/raw/master/RevokeMsgPatcher.Assistant/Data/0.8/patch.json /// private static readonly string[] urls = new string[] { - "https://gitee.com/huiyadanli/RevokeMsgPatcher/raw/master/RevokeMsgPatcher.Assistant/Data/0.8/patch.json", - "https://raw.githubusercontent.com/huiyadanli/RevokeMsgPatcher/master/RevokeMsgPatcher.Assistant/Data/0.8/patch.json" + "https://gitee.com/huiyadanli/RevokeMsgPatcher/raw/master/RevokeMsgPatcher.Assistant/Data/0.9/patch.json", + "https://huiyadanli.coding.net/p/RevokeMsgPatcher/d/RevokeMsgPatcher/git/raw/master/RevokeMsgPatcher.Assistant/Data/0.9/patch.json", + "https://raw.githubusercontent.com/huiyadanli/RevokeMsgPatcher/master/RevokeMsgPatcher.Assistant/Data/0.9/patch.json" }; private static int i = 0;