[fix] 规范客户端渗透表信息

This commit is contained in:
wujiawei
2024-10-28 23:06:31 +08:00
parent a04499ab4b
commit 381f8a6960
48 changed files with 1385 additions and 1380 deletions

View File

@ -3,6 +3,7 @@ package org.framework.lazy.cloud.network.heartbeat.common;
import io.netty.channel.Channel;
import lombok.extern.slf4j.Slf4j;
import org.framework.lazy.cloud.network.heartbeat.common.utils.ChannelAttributeKeyUtils;
import org.wu.framework.core.utils.ObjectUtils;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
@ -113,6 +114,9 @@ public class ChannelContext {
*/
public static Channel getLoadBalance(byte[] clientId) {
List<Channel> channels = get(clientId);
if(ObjectUtils.isEmpty(channels)){
return null;
}
return channels.get(0);
}