From 7a38526ab332131183fe899dfb5d6eb3db8b1c40 Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Sat, 31 Jan 2026 16:07:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=8E=A5=E5=8F=A3=E5=8F=82=E6=95=B0=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 DeleteAsync 方法的参数绑定由 FromBody 调整为 FromQuery,避免在删除消息时参数无法正确接收的问题 --- .../Services/Chat/MessageService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/MessageService.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/MessageService.cs index 56101112..378fbb7b 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/MessageService.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/MessageService.cs @@ -46,7 +46,7 @@ public class MessageService : ApplicationService /// /// 删除参数,包含消息Id列表和是否删除后续消息的开关 [Authorize] - public async Task DeleteAsync([FromBody] MessageDeleteInput input) + public async Task DeleteAsync([FromQuery] MessageDeleteInput input) { var userId = CurrentUser.GetId();