From 1bebb57765d467117f66eada813ed91cde39a650 Mon Sep 17 00:00:00 2001 From: iven Date: Thu, 30 Apr 2026 11:34:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E7=A7=BB=E9=99=A4=20ConsultationDe?= =?UTF-8?q?tail=20=E6=AE=8B=E7=95=99=E7=9A=84=20sender=5Fid/sender=5Frole?= =?UTF-8?q?=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 前端发送消息时不再提交 sender_id 和 sender_role, 这些字段由后端从 JWT 上下文自动填充。 --- apps/web/src/pages/health/ConsultationDetail.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/web/src/pages/health/ConsultationDetail.tsx b/apps/web/src/pages/health/ConsultationDetail.tsx index f38843f..4cdb680 100644 --- a/apps/web/src/pages/health/ConsultationDetail.tsx +++ b/apps/web/src/pages/health/ConsultationDetail.tsx @@ -169,8 +169,6 @@ export default function ConsultationDetail() { await consultationApi.createMessage({ session_id: sessionId, - sender_id: '', - sender_role: 'doctor', content_type: 'text', content: text, });