JLChen
2021-11-15 1323c0b3463c5486be9d5e5310782aeb9023697c
HDLSDK/hdl-common/src/main/java/com/hdl/sdk/common/config/AuthenticateConfig.java
@@ -4,8 +4,6 @@
import com.hdl.sdk.common.utils.SPUtils;
import static com.hdl.sdk.common.config.TopicConstant.DEIVCE_AUTH_REQUEST;
import static com.hdl.sdk.common.config.TopicConstant.GATEWAY_SEARCH;
/**
 * Created by jlchen on 11/11/21.
@@ -118,8 +116,9 @@
     */
    public boolean ifNeedEncrypt(String topicStr){
        //过滤相关需要加密的主题
        return (!topicStr.contains(DEIVCE_AUTH_REQUEST) //入网认证
                && !topicStr.contains(GATEWAY_SEARCH) //搜索网关主题
        return (!topicStr.contains(TopicConstant.GATEWAY_AUTH_BROADCAST) //网关广播入网指令
                && !topicStr.contains(TopicConstant.DEIVCE_AUTH_REQUEST) //入网认证
                && !topicStr.contains(TopicConstant.GATEWAY_SEARCH) //搜索网关主题
                && isLocalEncrypt//启用加密标志
        );
    }