feat: 新版秘境结算提示支持

main
LyMysterious 6 months ago
parent 35b9755e9c
commit ea73d594c5

@ -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

@ -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);

Loading…
Cancel
Save