From 5104157755df58e1707aff1d8b8c9bb0f9e93ff2 Mon Sep 17 00:00:00 2001 From: Vincent Wang <376787823@qq.com> Date: Sat, 12 Oct 2024 17:12:11 +0800 Subject: [PATCH] Update MainWindow.xaml.cs --- WeiboAlbumDownloader/MainWindow.xaml.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/WeiboAlbumDownloader/MainWindow.xaml.cs b/WeiboAlbumDownloader/MainWindow.xaml.cs index 3d727e0..04904bf 100644 --- a/WeiboAlbumDownloader/MainWindow.xaml.cs +++ b/WeiboAlbumDownloader/MainWindow.xaml.cs @@ -27,6 +27,9 @@ namespace WeiboAlbumDownloader /// public partial class MainWindow : MicaWindow { + + double currentVersion = 2.0; + /// /// com1是根据uid获取相册id,https://photo.weibo.com/albums/get_all?uid=10000000000&page=1;根据uid和相册id以及相册type获取图片列表,https://photo.weibo.com/photos/get_all?uid=10000000000&album_id=3959362334782071&page=1&type=3 /// com2是根据uid获取相册id,https://weibo.com/ajax/profile/getImageWall?uid=10000000000&sinceid=0&has_album=true;根据相册id和sinceid获取图片列表,https://weibo.com/ajax/profile/getAlbumDetail?containerid=123456789000123456_-_pc_profile_album_-_photo_-_camera_-_0_-_%25E5%258E%259F%25E5%2588%259B&since_id=0 @@ -85,7 +88,6 @@ private void StopDownLoad(object sender, RoutedEventArgs e) private async Task GetVersion() { - double currentVersion = 2.0; AppendLog($"当前程序版本V{currentVersion}"); var latestVersionString = await GithubHelper.GetLatestVersion(); @@ -606,7 +608,7 @@ await Task.Run(async () => } //单个用户结束下载 - string info = $"{userId}{nickName}于{DateTime.Now.ToString("HH:mm:ss")}结束下载"; + string info = $"{userId}{nickName}于{DateTime.Now.ToString("HH:mm:ss")}结束下载,程序版本V{currentVersion}"; await PushPlusHelper.SendMessage(settings?.PushPlusToken, "微博相册下载", info); AppendLog(info, MessageEnum.Info); }