From f1de90a6b44d3762812c9c6d37d8b50e18a652f2 Mon Sep 17 00:00:00 2001 From: 18650502300 <18650502300@163.com> Date: Mon, 16 Sep 2024 16:17:23 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=B6=88=E6=81=AF=E6=8E=A8=E9=80=81=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/iot/receive/ReceiveController.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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****************/