From 0aed2059381eb175e3050c2ee155fe2c25ef88b8 Mon Sep 17 00:00:00 2001
From: zhangjianrock@163.com <zhangjianrock@163.com>
Date: 星期一, 29 一月 2024 15:57:31 +0800
Subject: [PATCH] 无人机读取配置文件
---
ard-work/src/main/java/com/ruoyi/device/uav/service/UavService.java | 2 ++
1 files changed, 2 insertions(+), 0 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 1f91fd8..e81c1dc 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
@@ -60,6 +60,8 @@
private void getUavConfig() {
this.host = ConfigUtils.getConfigValue("uav_host");
+ this.username = ConfigUtils.getConfigValue("uav_username");
+ this.password = ConfigUtils.getConfigValue("uav_password");
this.salt = ConfigUtils.getConfigValue("uav_salt");
if (StringUtils.isEmpty(this.host) || StringUtils.isEmpty(this.username) || StringUtils.isEmpty(this.password) || StringUtils.isEmpty(this.salt)) {
throw new RuntimeException("鏃犱汉鏈哄弬鏁伴厤缃己澶�:");
--
Gitblit v1.9.3