feat: 新版秘境结算提示支持
This commit is contained in:
@@ -24,7 +24,7 @@ namespace NapCatRobotClient.API.Controllers
|
||||
{
|
||||
using StreamReader reader = new(Request.Body);
|
||||
string body = await reader.ReadToEndAsync();
|
||||
Log.Information($"接收到群消息:{body}");
|
||||
//Log.Information($"接收到群消息:{body}");
|
||||
bool result = await _dispatcherService.ReceiveMessageAndProcess(body);
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Flurl.Http;
|
||||
using Furion.Logging;
|
||||
using NapCatRobotClient.Core.RobotAPI.Dto.Request;
|
||||
|
||||
namespace NapCatRobotClient.Core.RobotAPI
|
||||
|
||||
+1
-1
@@ -91,7 +91,7 @@ namespace NapCatRobotClient.Service.Group.TextProcess
|
||||
{
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user