# update 权限相关

This commit is contained in:
2026-08-25 12:36:10 +08:00
parent 33df2ff0f7
commit 544efbd0f9
3 changed files with 9 additions and 12 deletions

View File

@@ -96,7 +96,7 @@ public class DeviceThreadService {
String[] parts = k.split(":");
String deviceId = parts[1];
NettyDevice slaveDevice = sessionManager.getDevice(deviceId);
if (slaveDevice != null && slaveDevice.isOnline()) {
if (slaveDevice != null && slaveDevice.getOnlineStatus() == 1) {
Long siteId = slaveDevice.getDevice().getSiteId();
Long orgId = slaveDevice.getDevice().getOrgId();
log.debug("compare siteId:{},orgId:{}", siteId, orgId);