Explorar o código

解决socket接受语音消息的类型判断问题

raolu %!s(int64=6) %!d(string=hai) anos
pai
achega
afb5442cc8
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

@ -156,7 +156,7 @@ function loadSocket(){
        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) {
//      	console.log(data)
            if((data.type == 1) ||(data.type == 2) || (data.type == 6) || (data.type == 12)){
            if((data.type == 1) ||(data.type == 2) || (data.type == 3) || (data.type == 6) || (data.type == 12)){
            addReply(1, data.content, new Date(data.timestamp).Format('yyyy-MM-dd HH:mm:ss'), data.type, data.name, getImgUrl(data.sender_img));        
//          setTimeout(function(){
                dialroll.refresh();