|
@ -11,6 +11,7 @@ let PatientClient = require('./../models/socket.io/patient.client');
|
|
|
let PcPatientClient = require('./../models/socket.io/pcPatient.client');
|
|
|
let PcDoctorClient = require('./../models/socket.io/pcDoctor.client');
|
|
|
let DoctorClient = require('./../models/socket.io/doctor.client');
|
|
|
let CloudCarePcManageClient = require('../models/socket.io/cloudCarePcManage.client');
|
|
|
let RtcClient = require('../models/socket.io/rtc.client.js');
|
|
|
let Sessions = require('../models/sessions/sessions');
|
|
|
let Users = require('../models/user/users');
|
|
@ -19,6 +20,7 @@ let ModelUtil = require('../util/model.util.js');
|
|
|
let pusher = require('../models/push/pusher.js');
|
|
|
let AppClient = require('../models/client/app.client.js');
|
|
|
let Participants = require('../models/sessions/participants');
|
|
|
let uuid = require('uuid')
|
|
|
|
|
|
let sessions = new Sessions();
|
|
|
let users = new Users();
|
|
@ -86,6 +88,8 @@ class SocketHandler {
|
|
|
data.userId= "patient_system_"+data.userId;
|
|
|
}else if("doctor_system"===data.clientType){//新增医生APP外层-登陆类型-20191012-huangnwenjie
|
|
|
data.userId= "doctor_system_"+data.userId;
|
|
|
} else if("cloudCare_pcManage"===data.clientType){//新增医生APP外层-登陆类型-20191012-huangnwenjie
|
|
|
data.userId= "cloudCare_pcManage"+uuid.v1();
|
|
|
}
|
|
|
|
|
|
if(clientCache.removeByUserId(data.userId)){
|
|
@ -129,7 +133,14 @@ class SocketHandler {
|
|
|
// pcdoctorClient.sessionId = "";
|
|
|
// clientCache.addClient(pcdoctorClient);
|
|
|
// socket.emit('ack', {});
|
|
|
}else{
|
|
|
}else if("cloudCare_pcManage"===data.clientType){
|
|
|
let cloudCarePcManageClient = new CloudCarePcManageClient(socket, socketServer);
|
|
|
cloudCarePcManageClient.userId = data.userId;
|
|
|
cloudCarePcManageClient.clientType = data.clientType;
|
|
|
clientCache.addClient(cloudCarePcManageClient);
|
|
|
socket.emit('ack', {});
|
|
|
}
|
|
|
else{
|
|
|
let doctorClient = new DoctorClient(socket, socketServer);
|
|
|
doctorClient.userId = data.userId;
|
|
|
doctorClient.password = data.password;
|