Browse Source

现在在线统计处理

yeshijie 4 years ago
parent
commit
12ff1fba35

+ 1 - 1
src/server/handlers/socket.handler.js

@ -150,7 +150,7 @@ class SocketHandler {
                            doctorClient.password = data.password;
                            doctorClient.clientType = data.clientType;
                            doctorClient.sessionId =  data.sessionId||"";
                            doctorClient.userType = data.userType||"teacher";
                            doctorClient.userType = data.userType||"";
                            clientCache.addClient(doctorClient);
                            onlineCache.addUser(data.userId,doctorClient.userType);
                            //修改医生在线状态

+ 1 - 1
src/server/models/socket.io/onlineCache.js

@ -1,7 +1,7 @@
/**
 * 客户端缓存池,记录各用户的socket与相应的client.
 * 用来统计用户在线状态
 * helper 助老员,teacher 教师,child 幼儿,olderWx 老人公众号,olderPad
 * helper 助老员,teacher 教师,child 幼儿,olderWx 老人公众号,olderPad 老人平板
 * author: ysj
 * since: 2021.07.16
 */