From a230c790107e4be5743473849bbc9aeb93583ddd Mon Sep 17 00:00:00 2001 From: vince <757871790@qq.com> Date: 星期五, 14 六月 2024 09:33:01 +0800 Subject: [PATCH] 修改地磅报文 --- src/main/java/com/fzzy/gateway/hx2023/service/ScGatewayTestServiceImpl.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/fzzy/gateway/hx2023/service/ScGatewayTestServiceImpl.java b/src/main/java/com/fzzy/gateway/hx2023/service/ScGatewayTestServiceImpl.java index aeb01f0..e7e23d4 100644 --- a/src/main/java/com/fzzy/gateway/hx2023/service/ScGatewayTestServiceImpl.java +++ b/src/main/java/com/fzzy/gateway/hx2023/service/ScGatewayTestServiceImpl.java @@ -1,5 +1,6 @@ package com.fzzy.gateway.hx2023.service; +import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.fzzy.api.data.DepotType; import com.fzzy.api.data.GatewayDeviceType; @@ -220,7 +221,7 @@ weightInfo.setWeightUnit("KG"); JSONObject jsonObject = new JSONObject(); - jsonObject.put("weightInfo", weightInfo); + jsonObject.put("weightInfo", JSON.toJSONString(weightInfo)); packet.setProperties(jsonObject); -- Gitblit v1.9.3