Browse Source

fix

master
winter 1 month ago
parent
commit
3189ea52d6
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      bjairService/src/main/java/com/iformall/haikang/HKPeopleNumberFactory.java

+ 5
- 0
bjairService/src/main/java/com/iformall/haikang/HKPeopleNumberFactory.java View File

@@ -12,6 +12,8 @@ import org.apache.http.client.CredentialsProvider;
import org.apache.http.impl.client.BasicCredentialsProvider;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.iformall.haikang.netty.NioSocketHandler;
@@ -20,6 +22,8 @@ import io.netty.channel.ChannelHandlerContext;

@Component
public class HKPeopleNumberFactory {
private final Logger log = LoggerFactory.getLogger(this.getClass());

private Map<String,Integer> peopleCountMap;
public List<NioSocketHandler> handlerList;
@@ -52,6 +56,7 @@ public class HKPeopleNumberFactory {
if (null != handlerList && handlerList.size() > 0 ) {
for (int i = 0 ; i < handlerList.size(); i++) {
NioSocketHandler handler = handlerList.get(i);
log.info("sendToDengxiang >>> "+handler.cctx+">>>>"+handler.sourceId+">>>>>>>"+handler.destId);
if (null != handler && null != handler.cctx && StringUtils.isNotBlank(handler.sourceId) && StringUtils.isNotBlank(handler.destId)) {
handler.sendControlData(handler.cctx, handler.sourceId,handler.destId);
}


Loading…
Cancel
Save