|
@@ -31,19 +31,12 @@ public class ServiceImpl implements Service {
|
|
|
|
|
|
// 数据
|
|
|
JSONObject data = messageEntity.getData();
|
|
|
+ MyUtil.infoLog("指令数据:" + data.toJSONString());
|
|
|
+
|
|
|
String forwardUserId = data.getString(WebSocketConstant.FORWARD_USER_ID);
|
|
|
String forwardSessionId = data.getString(WebSocketConstant.FORWARD_SESSION_ID);
|
|
|
-
|
|
|
// 获取指令
|
|
|
String instructions = data.getString("instructions");
|
|
|
-
|
|
|
- if (!ObjectUtil.isAllNotEmpty(forwardUserId, forwardSessionId, instructions)) {
|
|
|
- MyUtil.errorLog("盘点数据:" + data.toJSONString());
|
|
|
- }
|
|
|
-
|
|
|
- forwardUserId = ObjectUtil.defaultIfBlank(forwardUserId, "default");
|
|
|
- forwardSessionId = ObjectUtil.defaultIfBlank(forwardSessionId, "default");
|
|
|
-
|
|
|
// 操作上位机类型
|
|
|
Integer type = data.getInteger("type");
|
|
|
|