|
@ -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();
|