From 96ff86c82a9c7892a88cdee1a00b710a0006258a Mon Sep 17 00:00:00 2001
From: zhangjianrock@163.com <zhangjianrock@163.com>
Date: 星期日, 14 一月 2024 16:21:13 +0800
Subject: [PATCH] 无人机读取配置文件
---
ard-work/src/main/java/com/ruoyi/device/uav/service/UavService.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/device/uav/service/UavService.java b/ard-work/src/main/java/com/ruoyi/device/uav/service/UavService.java
index 1861639..5f3b443 100644
--- a/ard-work/src/main/java/com/ruoyi/device/uav/service/UavService.java
+++ b/ard-work/src/main/java/com/ruoyi/device/uav/service/UavService.java
@@ -69,6 +69,8 @@
}
public String doUavRequest(HttpMethod method, String url, String data) {
+
+ getUavConfig();
String res = null;
Method requestMethod = null;
//鑾峰彇method
@@ -125,7 +127,7 @@
log.debug("body:" + body);
try {
//uavClient.GET("logout", null, "{}");
- String res = uavClient.POST(this.host+"login", null, body);
+ String res = uavClient.POST(this.host+"/login", null, body);
Map resMap = om.readValue(res, Map.class);
if (resMap != null) {
redisCache.setCacheMap("uav:uavUser", (Map) resMap.get("data"));
--
Gitblit v1.9.3