mirror of https://gitee.com/stylefeng/roses
【7.3.0】更新配置监听设置
parent
227a4401e3
commit
63e62ea16a
|
@ -223,9 +223,10 @@ public class DefaultSessionManager implements SessionManagerApi, ConfigUpdateCal
|
|||
public void configUpdate(String code, String value) {
|
||||
// 如果系统配置修改了websocket url,则刷新所有在线用户的配置
|
||||
if (WEB_SOCKET_WS_URL_CONFIG_CODE.equals(code)) {
|
||||
List<LoginUser> loginUsers = this.onlineUserList();
|
||||
for (LoginUser loginUser : loginUsers) {
|
||||
Map<String, LoginUser> allKeyValues = loginUserCache.getAllKeyValues();
|
||||
for (LoginUser loginUser : allKeyValues.values()) {
|
||||
loginUser.setWsUrl(WebSocketConfigExpander.getWebSocketWsUrl());
|
||||
this.updateSession(loginUser.getToken(), loginUser);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue