Merge pull request #1626 from DGP-Studio/fix/1613

fix #1613
This commit is contained in:
DismissedLight
2024-05-21 21:59:38 +08:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -3024,7 +3024,7 @@
<value>武器资料</value> <value>武器资料</value>
</data> </data>
<data name="WebAnnouncementMatchPermanentActivityTime" xml:space="preserve"> <data name="WebAnnouncementMatchPermanentActivityTime" xml:space="preserve">
<value>(?:〓活动时间〓|〓任务开放时间〓).*?(\d\.\d)版本更新(?:完成|)后永久开放</value> <value>(?:(?:〓活动时间〓|〓任务开放时间〓).*?(\d\.\d)版本更新(?:完成|)|&amp;lt;t class=\"t_(?:gl|lc)\".*?&amp;gt;(.*?)&amp;lt;/t&amp;gt;)后永久开放</value>
</data> </data>
<data name="WebAnnouncementMatchPersistentActivityTime" xml:space="preserve"> <data name="WebAnnouncementMatchPersistentActivityTime" xml:space="preserve">
<value>〓活动时间〓.*?(\d\.\d)版本期间持续开放</value> <value>〓活动时间〓.*?(\d\.\d)版本期间持续开放</value>

View File

@@ -152,6 +152,8 @@ internal sealed partial class AnnouncementService : IAnnouncementService
announcement.StartTime = versionStartTime; announcement.StartTime = versionStartTime;
continue; continue;
} }
announcement.StartTime = UnsafeDateTimeOffset.ParseDateTime(permanent.Groups[2].ValueSpan, offset);
} }
if (AnnouncementRegex.PersistentActivityAfterUpdateTimeRegex.Match(announcement.Content) is { Success: true } persistent) if (AnnouncementRegex.PersistentActivityAfterUpdateTimeRegex.Match(announcement.Content) is { Success: true } persistent)