From d4a5e7d49e0ef8de37c09db429810665d34dd8fe Mon Sep 17 00:00:00 2001 From: Vincent Wang <376787823@qq.com> Date: Mon, 28 Oct 2024 17:46:32 +0800 Subject: [PATCH] Update GithubHelper.cs --- WeiboAlbumDownloader/Helpers/GithubHelper.cs | 27 +++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/WeiboAlbumDownloader/Helpers/GithubHelper.cs b/WeiboAlbumDownloader/Helpers/GithubHelper.cs index 2279351..a07b37e 100644 --- a/WeiboAlbumDownloader/Helpers/GithubHelper.cs +++ b/WeiboAlbumDownloader/Helpers/GithubHelper.cs @@ -31,8 +31,33 @@ public class GithubHelper } catch (Exception ex) { - return ex.ToString(); + //return ex.ToString(); } } + + public static async Task GetGiteeLatestVersion() + { + try + { + HttpClient client = new HttpClient(); + var resp = await client.GetAsync("https://gitee.com/hupo376787/weibo-album-downloader/tags"); + var body = await resp.Content.ReadAsStringAsync(); + string pattern = @"