fix:校准记录,去掉权限校验,登录用户都可以调用。

This commit is contained in:
tianyongbao
2026-04-15 16:33:21 +08:00
parent 34d9e2f8a5
commit 5cc04a2f0d

View File

@@ -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("设备不存在");
}
// 如果是控制器且未启用溶解氧功能