add(login):完善登录逻辑

This commit is contained in:
2025-12-14 21:40:34 +08:00
parent 6ca7a8275c
commit 82652efed7
14 changed files with 647 additions and 134 deletions
-1
View File
@@ -34,7 +34,6 @@ namespace IM_API.Hubs
}
var userIdStr = Context.User.FindFirstValue(ClaimTypes.NameIdentifier);
await _messageService.SendPrivateMessageAsync(int.Parse(userIdStr),dto.ReceiverId,dto);
await Clients.Caller.SendAsync("ReceiveMessage",userIdStr,"qfqwfqwfqw");
await Clients.Users(dto.ReceiverId.ToString()).SendAsync("ReceiveMessage", userIdStr, dto.Content);
return;
}