| | |
| | | //执行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) { |
| | |
| | | } catch (ForestRuntimeException e) { |
| | | log.error("无人机连接超时" + e.getMessage()); |
| | | } catch (JsonMappingException e) { |
| | | e.printStackTrace(); |
| | | } catch (JsonProcessingException e) { |
| | | e.printStackTrace(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |