zhangjianrock@163.com
2024-01-29 0aed2059381eb175e3050c2ee155fe2c25ef88b8
无人机读取配置文件
已修改1个文件
2 ■■■■■ 文件已修改
ard-work/src/main/java/com/ruoyi/device/uav/service/UavService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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("无人机参数配置缺失:");