mirror of
https://github.com/huiyadanli/RevokeMsgPatcher.git
synced 2025-07-08 08:26:08 +08:00
[+] 添加特征码支持版本范围的显示
This commit is contained in:
parent
2ceda42417
commit
410b9172c0
|
@ -23,11 +23,27 @@ namespace RevokeMsgPatcher.Model
|
||||||
{
|
{
|
||||||
// 使用 HashSet 防重
|
// 使用 HashSet 防重
|
||||||
HashSet<string> versions = new HashSet<string>();
|
HashSet<string> versions = new HashSet<string>();
|
||||||
foreach (List<ModifyInfo> modifyInfos in FileModifyInfos.Values)
|
// 精准
|
||||||
|
if (FileModifyInfos != null)
|
||||||
{
|
{
|
||||||
foreach (ModifyInfo modifyInfo in modifyInfos)
|
foreach (List<ModifyInfo> modifyInfos in FileModifyInfos.Values)
|
||||||
{
|
{
|
||||||
versions.Add(modifyInfo.Version);
|
foreach (ModifyInfo modifyInfo in modifyInfos)
|
||||||
|
{
|
||||||
|
versions.Add(modifyInfo.Version);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 模糊 范围
|
||||||
|
if (FileCommonModifyInfos != null)
|
||||||
|
{
|
||||||
|
foreach (List<CommonModifyInfo> commonModifyInfos in FileCommonModifyInfos.Values)
|
||||||
|
{
|
||||||
|
foreach (CommonModifyInfo commonModifyInfo in commonModifyInfos)
|
||||||
|
{
|
||||||
|
string end = string.IsNullOrEmpty(commonModifyInfo.EndVersion) ? "最新版" : commonModifyInfo.EndVersion;
|
||||||
|
versions.Add(commonModifyInfo.StartVersion + "~" + end);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return versions;
|
return versions;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user