update 优化 websocket 服务不存在异常逻辑处理

This commit is contained in:
疯狂的狮子Li
2023-11-21 10:48:43 +08:00
parent 717c7b2873
commit f6252a80cd
2 changed files with 40 additions and 5 deletions

View File

@@ -65,7 +65,7 @@ public class TokenController {
private final RemoteClientService remoteClientService;
@DubboReference
private final RemoteSocialService remoteSocialService;
@DubboReference
@DubboReference(stub = "true")
private final RemoteMessageService remoteMessageService;
/**
@@ -97,10 +97,7 @@ public class TokenController {
Long userId = LoginHelper.getUserId();
scheduledExecutorService.schedule(() -> {
try {
remoteMessageService.sendMessage(userId, "欢迎登录RuoYi-Cloud-Plus微服务管理系统");
} catch (Exception ignored) {
}
remoteMessageService.sendMessage(userId, "欢迎登录RuoYi-Cloud-Plus微服务管理系统");
}, 3, TimeUnit.SECONDS);
return R.ok(loginVo);
}