guoshilong
2023-09-26 c5320fbf7fd671ba7ccefe66e951edeebb4252b2
src/main/java/com/dji/sample/component/mqtt/config/MqttConfiguration.java
@@ -81,7 +81,7 @@
     */
    public static MqttBrokerDTO getMqttBrokerWithDrc(String clientId, String username, Long age, Map<String, ?> map) {
        if (!mqtt.containsKey(MqttUseEnum.DRC)) {
            throw new RuntimeException("Please configure the drc link parameters of mqtt in the backend configuration file first.");
            throw new RuntimeException("请先在后端配置文件中配置mqtt的drc链接参数。");
        }
        Algorithm algorithm = JwtUtil.algorithm;
@@ -89,10 +89,10 @@
        return MqttBrokerDTO.builder()
                .address(getMqttAddress(mqtt.get(MqttUseEnum.DRC)))
                .username(username)
                .username("root")
                .clientId(clientId)
                .expireTime(System.currentTimeMillis() / 1000 + age)
                .password(token)
                .password("root")
                .build();
    }