diff --git a/electripper-admin/src/main/java/com/ruoyi/web/controller/iot/receive/ReceiveController.java b/electripper-admin/src/main/java/com/ruoyi/web/controller/iot/receive/ReceiveController.java index 7b3072a..f11811e 100644 --- a/electripper-admin/src/main/java/com/ruoyi/web/controller/iot/receive/ReceiveController.java +++ b/electripper-admin/src/main/java/com/ruoyi/web/controller/iot/receive/ReceiveController.java @@ -127,12 +127,10 @@ public class ReceiveController { log.info("接收到receive方法时间: " + System.currentTimeMillis()); // 使用线程池提交任务 scheduledExecutorService.submit(() -> { - synchronized (lock) { - try { - handleBody(obj); - } catch (UnsupportedEncodingException | NoSuchAlgorithmException | InvalidKeyException e) { - e.printStackTrace(); - } + try { + handleBody(obj); + } catch (UnsupportedEncodingException | NoSuchAlgorithmException | InvalidKeyException e) { + e.printStackTrace(); } }); /*************明文模式 end****************/