ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/iotda/utils/listener/IotMessageListener.java
@@ -24,8 +24,12 @@ * @throws IOException */ @PostMapping(value = "/message") public AjaxResult<Integer> add(@RequestBody JSONObject jsonObject) throws IOException { System.err.println(jsonObject); public AjaxResult<String> message(@RequestBody JSONObject jsonObject) throws IOException { log.info("接收到消息中转:{}",jsonObject); JSONObject content = jsonObject.getJSONObject("content"); if (content.getString("name").equals("device_status_change")){ //设备状态改变 } return AjaxResult.success(); }