private static void EnsureUpdatePathExists()
 {
     if (string.IsNullOrWhiteSpace(Config.Instance.UpdatePath) ||
         CheckUrlRegex.IsMatch(Config.Instance.UpdatePath))
     {
         Config.Instance.UpdatePath = $"{Definitions.OrigindServerUrl}/{Definitions.Rest.ClientJson}";
     }
 }
        private static async Task UpdateUpdatePathAsync() // 兼容其它的服务器
        {
            while (!CheckUrlRegex.IsMatch(Config.Instance.UpdatePath))
            {
                var input = new InputDialog {
                    Title = { Text = "输入客户端更新地址." }
                };
                await DialogHost.Show(input, "RootDialog");

                var text = input.InputBox.Text;
                if (CheckUrlRegex.IsMatch(text))
                {
                    Config.Instance.UpdatePath = text;
                }
                Config.Save();
            }
        }