mirror of
https://github.com/wangdage12/Snap.Hutao.git
synced 2026-02-17 15:06:39 +08:00
支持公告中的发行版字段
This commit is contained in:
@@ -47,6 +47,9 @@ internal sealed partial class HutaoAsAService : IHutaoAsAService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Filter announcements by Distribution
|
||||||
|
array = [.. array.Where(a => string.IsNullOrEmpty(a.Distribution) || a.Distribution == "Snap Hutao")]; // 请自行修改发行版名称
|
||||||
|
|
||||||
foreach (HutaoAnnouncement item in array)
|
foreach (HutaoAnnouncement item in array)
|
||||||
{
|
{
|
||||||
item.DismissCommand = dismissCommand;
|
item.DismissCommand = dismissCommand;
|
||||||
|
|||||||
@@ -16,4 +16,6 @@ internal class UploadAnnouncement
|
|||||||
public string Link { get; set; } = default!;
|
public string Link { get; set; } = default!;
|
||||||
|
|
||||||
public string? MaxPresentVersion { get; set; }
|
public string? MaxPresentVersion { get; set; }
|
||||||
|
|
||||||
|
public string? Distribution { get; set; }
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user