feat: 添加自动任务群监听触发验证码
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user