aijinhui
2023-09-26 6642bd2b06a87e8498bc83a0cc0e2a3d8ca2a582
ard-work/src/main/java/com/ruoyi/device/uav/service/UavService.java
@@ -54,7 +54,8 @@
        //执行method
        this.getToken();//获取token验证,验证token有效性
        try {
            res = (String) requestMethod.invoke(this.uavClient, url, this.getToken(), data);
            String token = this.getToken();
            res = (String) requestMethod.invoke(this.uavClient, url, token, data);
        } catch (IllegalAccessException e) {
            System.out.println("doUavRequest 访问失败" + e.getMessage());
        } catch (InvocationTargetException e) {
@@ -102,6 +103,7 @@
            }
        } catch (ForestRuntimeException e) {
            log.error("无人机连接超时" + e.getMessage());
            e.printStackTrace();
        } catch (JsonMappingException e) {
            e.printStackTrace();
        } catch (JsonProcessingException e) {