Explorar o código

IM消息已读问题解决

raolu %!s(int64=7) %!d(string=hai) anos
pai
achega
09894b2673
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {