fix(web): 移除 ConsultationDetail 残留的 sender_id/sender_role 字段
前端发送消息时不再提交 sender_id 和 sender_role, 这些字段由后端从 JWT 上下文自动填充。
This commit is contained in:
@@ -169,8 +169,6 @@ export default function ConsultationDetail() {
|
|||||||
|
|
||||||
await consultationApi.createMessage({
|
await consultationApi.createMessage({
|
||||||
session_id: sessionId,
|
session_id: sessionId,
|
||||||
sender_id: '',
|
|
||||||
sender_role: 'doctor',
|
|
||||||
content_type: 'text',
|
content_type: 'text',
|
||||||
content: text,
|
content: text,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user