Skip to content

Commit

Permalink
Update MainWindow.xaml.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
hupo376787 authored Oct 12, 2024
1 parent 446f50d commit 5104157
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions WeiboAlbumDownloader/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ namespace WeiboAlbumDownloader
/// </summary>
public partial class MainWindow : MicaWindow
{

double currentVersion = 2.0;

/// <summary>
/// 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
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -606,7 +608,7 @@ await Task.Run(async () =>
}
//单个用户结束下载
string info = $"<a href=\"//weibo.com/u/{userId}\">{userId}{nickName}</a>于{DateTime.Now.ToString("HH:mm:ss")}结束下载<img src=\"{headUrl}\">";
string info = $"<a href=\"//weibo.com/u/{userId}\">{userId}{nickName}</a>于{DateTime.Now.ToString("HH:mm:ss")}结束下载,程序版本V{currentVersion}<img src=\"{headUrl}\">";
await PushPlusHelper.SendMessage(settings?.PushPlusToken, "微博相册下载", info);
AppendLog(info, MessageEnum.Info);
}
Expand Down

0 comments on commit 5104157

Please sign in to comment.