liusuyi
2025-02-21 8c5435101924d68588448a4c981417df4b4dab1d
ard-work/src/main/java/com/ard/tianyu/aspect/ControlAuthorityAspect.java
@@ -57,8 +57,8 @@
            String boxSn = getBoxSn(arg);
            if (boxSn != null) {
                //判断无人机控制者是否为当前登录用户
                Long currentControllerId = UavControlManager.droneControlMap.get(boxSn);
                if (currentControllerId != null && currentControllerId.equals(SecurityUtils.getUserId())) {
                Long controller = UavControlManager.uavControlMap.get(boxSn);
                if (controller != null && controller.equals(SecurityUtils.getUserId())) {
                    return true;
                }
            }