Browse Source

IM消息已读问题解决

raolu 7 years ago
parent
commit
09894b2673
1 changed files with 1 additions and 1 deletions
  1. 1 1
      html/qygl/js/consulting-doctor.js

+ 1 - 1
html/qygl/js/consulting-doctor.js

@ -152,7 +152,7 @@ function doResponse(res){
function loadSocket(){
    jQuery.getScript(imurl+"/socket.io/socket.io.js").done(function() {
        var socket = io.connect(imurl);
        var sessionId = patientcode+"_"+request.teamCode+"_"+request.type;
        var sessionId = patientcode+"_"+request.doctor+"_1";
        var userInfo = JSON.parse(window.localStorage.getItem(agentName));  
        socket.emit('login', {userId: userInfo.represented?userInfo.represented:userInfo.uid, password: userInfo.represented?userInfo.represented:userInfo.uid,sessionId:sessionId,clientType:"patient"});
        socket.on('message', function (data) {