出账账户自定义节点开发完成

This commit is contained in:
2024-11-02 17:22:58 +08:00
parent 1c152e2d1a
commit 090728452f
17 changed files with 1088 additions and 407 deletions

View File

@@ -69,12 +69,9 @@ public class WebSocketServer {
*/
@OnMessage
public void onMessage(String message) throws IOException {
System.out.println("-------------------------------------------------------------------");
JSONObject jsonObject = JSONObject.parseObject(message);
String userId = jsonObject.getString("userId");
String type = jsonObject.getString("type");
System.out.println(type);
System.out.println(message);
if (type.equals(MessageType.CHAT.getType())) {
log.debug("聊天消息推送");
sendToUser(userId, JSONObject.toJSONString(jsonObject));