|
@@ -3,6 +3,7 @@ package com.huiju.estateagents.websocket;
|
3
|
3
|
import com.alibaba.fastjson.JSONObject;
|
4
|
4
|
import com.huiju.estateagents.base.ResponseBean;
|
5
|
5
|
import com.huiju.estateagents.entity.TaChat;
|
|
6
|
+import com.huiju.estateagents.service.ISysButtonInMenuService;
|
6
|
7
|
import com.huiju.estateagents.service.ITaChatService;
|
7
|
8
|
import org.slf4j.Logger;
|
8
|
9
|
import org.slf4j.LoggerFactory;
|
|
@@ -74,7 +75,9 @@ public class ChatServer {
|
74
|
75
|
if ("ping" == message) {
|
75
|
76
|
try {
|
76
|
77
|
this.sendMessage("pong");
|
77
|
|
- } catch (IOException e) {}
|
|
78
|
+ } catch (IOException e) {
|
|
79
|
+ System.out.println("断链"+ e.getMessage());
|
|
80
|
+ }
|
78
|
81
|
return;
|
79
|
82
|
}
|
80
|
83
|
|
|
@@ -83,7 +86,7 @@ public class ChatServer {
|
83
|
86
|
if ( null == ChatServer.taChatService) {
|
84
|
87
|
ChatServer.taChatService = applicationContext.getBean(ITaChatService.class);
|
85
|
88
|
}
|
86
|
|
-
|
|
89
|
+ System.out.println("收到的聊天消息的信息=========" + jsnMsg.toJSONString());
|
87
|
90
|
ResponseBean resp = ChatServer.taChatService.chat(jsnMsg);
|
88
|
91
|
TaChat taChat = (TaChat) resp.getData();
|
89
|
92
|
|