From 761b51cb54daebb8b433fcca99806ace2b2ad202 Mon Sep 17 00:00:00 2001 From: LyMysterious Date: Sun, 5 Oct 2025 12:48:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=98=E5=A2=83=E7=BB=93=E7=AE=97?= =?UTF-8?q?=E9=80=82=E9=85=8D=E6=96=B0=E6=97=A7=E4=B8=A4=E7=A7=8D=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- XiaoXiaoRoBot/Cmd/MiJingNotify.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/XiaoXiaoRoBot/Cmd/MiJingNotify.cs b/XiaoXiaoRoBot/Cmd/MiJingNotify.cs index a4c588f..0fe4fd1 100644 --- a/XiaoXiaoRoBot/Cmd/MiJingNotify.cs +++ b/XiaoXiaoRoBot/Cmd/MiJingNotify.cs @@ -54,7 +54,7 @@ namespace RoBot.Start.Cmd await Task.Delay(delay); Dto.ConfigDto.ConfigSetting systemConfig = GlobalConfig.ConfigSetting; Lagrange.Core.BotContext bot = GlobalConfig.BotContext; - await bot.SendMentionMsg((uint)systemConfig.GroupQQ, userId, $"秘境结算通知,该结算奖励了!({minutes} 分钟)"); + await bot.SendMentionMsg((uint)systemConfig.GroupQQ, userId, $"【秘境结算通知】\r\n探索已完成,该结算奖励了!({minutes} 分钟)"); }); } @@ -62,7 +62,7 @@ namespace RoBot.Start.Cmd { if (string.IsNullOrWhiteSpace(content)) return 0; - var match = Regex.Match(content, @"花费时间[::]\s*(\d+(?:\.\d+)?)", RegexOptions.Compiled); + var match = Regex.Match(content, @"(花费时间|探索耗时)[::]\s*(\d+(?:\.\d+)?)", RegexOptions.Compiled); if (!match.Success) { match = Regex.Match(content, @"(\d+(?:\.\d+)?)", RegexOptions.Compiled); @@ -70,7 +70,7 @@ namespace RoBot.Start.Cmd if (match.Success) { - if (double.TryParse(match.Groups[1].Value, NumberStyles.Float, CultureInfo.InvariantCulture, out double val)) + if (double.TryParse(match.Groups[2].Value, NumberStyles.Float, CultureInfo.InvariantCulture, out double val)) { return (int)Math.Ceiling(val); }