From 5cc04a2f0da64e2057e465f3581e45d92205672a Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Wed, 15 Apr 2026 16:33:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=A0=A1=E5=87=86=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=EF=BC=8C=E5=8E=BB=E6=8E=89=E6=9D=83=E9=99=90=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=EF=BC=8C=E7=99=BB=E5=BD=95=E7=94=A8=E6=88=B7=E9=83=BD=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E8=B0=83=E7=94=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/intc/iot/controller/IotController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intc-modules/intc-iot/src/main/java/com/intc/iot/controller/IotController.java b/intc-modules/intc-iot/src/main/java/com/intc/iot/controller/IotController.java index 31e66f8..f1da62d 100644 --- a/intc-modules/intc-iot/src/main/java/com/intc/iot/controller/IotController.java +++ b/intc-modules/intc-iot/src/main/java/com/intc/iot/controller/IotController.java @@ -1760,8 +1760,8 @@ public class IotController extends BaseController { Device::getValueDissolvedOxygen, Device::getValueTemperature) ); - if (device == null || device.getUserId() == null || !device.getUserId().equals(userId)) { - return R.fail("设备不存在或无权限访问"); + if (device == null) { + return R.fail("设备不存在"); } // 如果是控制器且未启用溶解氧功能