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);