feat: 添加自动任务群监听触发验证码

This commit is contained in:
LyMysterious
2025-10-26 13:00:50 +08:00
parent 9a6efc579f
commit e8cd8a0023
10 changed files with 149 additions and 16 deletions
@@ -1,3 +1,4 @@
using Furion.Logging;
using Microsoft.AspNetCore.Mvc;
using NapCatRobotClient.Service.Dispatcher.Service;
@@ -15,7 +16,7 @@ namespace NapCatRobotClient.API.Controllers
}
/// <summary>
/// ½ÓÊÕÏûÏ¢Èë¿Ú
/// 接收消息入口
/// </summary>
/// <returns></returns>
[HttpPost]
@@ -23,6 +24,7 @@ namespace NapCatRobotClient.API.Controllers
{
using StreamReader reader = new(Request.Body);
string body = await reader.ReadToEndAsync();
Log.Information($"接收到群消息:{body}");
bool result = await _dispatcherService.ReceiveMessageAndProcess(body);
return Ok(result);
}