xieb
2023-09-19 6e5af7b47c0db7b47a077cfe1a23df482f2703b2
zh_cn
2 files modified
4 ■■■■ changed files
src/main/java/com/dji/sample/component/mqtt/config/MqttConfiguration.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/dji/sample/control/service/impl/DrcServiceImpl.java 2 ●●● patch | view | raw | blame | history
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;
src/main/java/com/dji/sample/control/service/impl/DrcServiceImpl.java
@@ -170,7 +170,7 @@
                    .build());
        if (ResponseResult.CODE_SUCCESS != reply.getResult()) {
            throw new RuntimeException("SN: " + param.getDockSn() + "; Error Code:" + reply.getResult() + "; Failed to enter command flight control mode, please try again later!");
            throw new RuntimeException("SN: " + param.getDockSn() + "; Error Code:" + reply.getResult() + "; 进入命令飞行控制模式失败,请稍后再试!");
        }
        refreshAcl(param.getDockSn(), param.getClientId(), pubTopic, subTopic);