mirror of
				https://github.com/huiyadanli/RevokeMsgPatcher.git
				synced 2025-11-03 13:26:07 +08:00 
			
		
		
		
	[+] Version 0.9
This commit is contained in:
		
							parent
							
								
									410b9172c0
								
							
						
					
					
						commit
						5980d9c42c
					
				| 
						 | 
					@ -74,7 +74,6 @@ namespace RevokeMsgPatcher
 | 
				
			||||||
            txtPath.Text = modifier.FindInstallPath();
 | 
					            txtPath.Text = modifier.FindInstallPath();
 | 
				
			||||||
            // 显示是否能够备份还原、版本和功能
 | 
					            // 显示是否能够备份还原、版本和功能
 | 
				
			||||||
            InitEditorsAndUI(txtPath.Text);
 | 
					            InitEditorsAndUI(txtPath.Text);
 | 
				
			||||||
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        private void InitEditorsAndUI(string path)
 | 
					        private void InitEditorsAndUI(string path)
 | 
				
			||||||
| 
						 | 
					@ -121,7 +120,7 @@ namespace RevokeMsgPatcher
 | 
				
			||||||
            EnableAllButton(false);
 | 
					            EnableAllButton(false);
 | 
				
			||||||
            // a.重新初始化编辑器
 | 
					            // a.重新初始化编辑器
 | 
				
			||||||
            modifier.InitEditors(txtPath.Text);
 | 
					            modifier.InitEditors(txtPath.Text);
 | 
				
			||||||
            // b.获取选择的功能 (精准匹配返回null)
 | 
					            // b.获取选择的功能 (精准匹配返回null) // TODO 此处逻辑可以优化 不可完全信任UI信息
 | 
				
			||||||
            List<string> categories = UIController.GetCategoriesFromPanel(panelCategories);
 | 
					            List<string> categories = UIController.GetCategoriesFromPanel(panelCategories);
 | 
				
			||||||
            if (categories != null && categories.Count == 0)
 | 
					            if (categories != null && categories.Count == 0)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
| 
						 | 
					@ -250,8 +249,8 @@ namespace RevokeMsgPatcher
 | 
				
			||||||
        private async void FormMain_Load(object sender, EventArgs e)
 | 
					        private async void FormMain_Load(object sender, EventArgs e)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            // 异步获取最新的补丁信息
 | 
					            // 异步获取最新的补丁信息
 | 
				
			||||||
            //string json = await HttpUtil.GetPatchJsonAsync();
 | 
					            string json = await HttpUtil.GetPatchJsonAsync();
 | 
				
			||||||
            string json = null; // local test
 | 
					            //string json = null; // local test
 | 
				
			||||||
            if (string.IsNullOrEmpty(json))
 | 
					            if (string.IsNullOrEmpty(json))
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                lblUpdatePachJson.Text = "[ 获取最新补丁信息失败 ]";
 | 
					                lblUpdatePachJson.Text = "[ 获取最新补丁信息失败 ]";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
 | 
				
			||||||
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
 | 
					// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
 | 
				
			||||||
// 方法是按如下所示使用“*”: :
 | 
					// 方法是按如下所示使用“*”: :
 | 
				
			||||||
//[assembly: AssemblyVersion("1.0.*")]
 | 
					//[assembly: AssemblyVersion("1.0.*")]
 | 
				
			||||||
[assembly: AssemblyVersion("0.8")]
 | 
					[assembly: AssemblyVersion("0.9")]
 | 
				
			||||||
[assembly: AssemblyFileVersion("0.8")]
 | 
					[assembly: AssemblyFileVersion("0.9")]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -20,12 +20,12 @@ namespace RevokeMsgPatcher.Utils
 | 
				
			||||||
        /// 已经弃用的路径
 | 
					        /// 已经弃用的路径
 | 
				
			||||||
        /// https://swordmaker-hauls-51508.netlify.com/i/revokemsg/05.json
 | 
					        /// https://swordmaker-hauls-51508.netlify.com/i/revokemsg/05.json
 | 
				
			||||||
        /// https://huiyadanli.github.io/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>
 | 
					        /// </summary>
 | 
				
			||||||
        private static readonly string[] urls = new string[]
 | 
					        private static readonly string[] urls = new string[]
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "https://gitee.com/huiyadanli/RevokeMsgPatcher/raw/master/RevokeMsgPatcher.Assistant/Data/0.8/patch.json",
 | 
					            "https://gitee.com/huiyadanli/RevokeMsgPatcher/raw/master/RevokeMsgPatcher.Assistant/Data/0.9/patch.json",
 | 
				
			||||||
            "https://raw.githubusercontent.com/huiyadanli/RevokeMsgPatcher/master/RevokeMsgPatcher.Assistant/Data/0.8/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;
 | 
					        private static int i = 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user