zhangjian
2023-09-23 2a18523931228c78ae359997986d004a39545d51
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) {
@@ -103,11 +104,8 @@
        } catch (ForestRuntimeException e) {
            log.error("无人机连接超时" + e.getMessage());
        } catch (JsonMappingException e) {
            e.printStackTrace();
        } catch (JsonProcessingException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }