|
@@ -23,6 +23,6 @@ public class RealtimeService : IRealtimeService, IScopeDependency
|
|
|
var work = _userCacheManager.GetWorkByUser(userId);
|
|
|
if (string.IsNullOrEmpty(work.SignalRId))
|
|
|
throw new UserFriendlyException("无效signalr.connectionId");
|
|
|
- await _hubContext.Clients.Client(work.SignalRId).SendAsync("Ring", dto, cancellationToken);
|
|
|
+ await _hubContext.Clients.Client(work.SignalRId).SendAsync(RealtimeMethods.Ring, dto, cancellationToken);
|
|
|
}
|
|
|
}
|