|
@@ -1,6 +1,7 @@
|
|
|
package com.fjhx.service.impl;
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fjhx.MyMain;
|
|
|
import com.fjhx.constant.WebSocketConstant;
|
|
@@ -26,12 +27,13 @@ public class ServiceImpl implements Service {
|
|
|
public void handleMessage(MessageEntity messageEntity) {
|
|
|
|
|
|
if (WebSocketConstant.OPERATING_UPPER_COMPUTER != messageEntity.getType()) {
|
|
|
+ MyUtil.errorLog("跳过指令:" + JSON.toJSONString(messageEntity));
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
// 数据
|
|
|
JSONObject data = messageEntity.getData();
|
|
|
- MyUtil.infoLog("指令数据:" + data.toJSONString());
|
|
|
+ MyUtil.infoLog("执行指令:" + data.toJSONString());
|
|
|
|
|
|
String forwardUserId = data.getString(WebSocketConstant.FORWARD_USER_ID);
|
|
|
String forwardSessionId = data.getString(WebSocketConstant.FORWARD_SESSION_ID);
|