[+] Version 0.9

This commit is contained in:
huiyadanli 2020-07-25 12:51:36 +08:00
parent 410b9172c0
commit 5980d9c42c
3 changed files with 8 additions and 9 deletions

View File

@ -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<string> 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 = "[ 获取最新补丁信息失败 ]";

View File

@ -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")]

View File

@ -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
/// </summary>
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;