Просмотр исходного кода

修复 获取肥阀数据异常

zhaiyifei 8 месяцев назад
Родитель
Сommit
14cc911c18

+ 3 - 1
src/main/java/com/yunfeiyun/agmp/iot/common/util/dev/RunHaoSfElementUtil.java

@@ -123,7 +123,9 @@ public class RunHaoSfElementUtil {
      * @return 设备元素因子对象,如果无法解析则返回null
      */
     public static IotSfElementfactor getPumpElementFactor(String key) {
-
+        if(key.startsWith("Btn-fsxr")){
+            return null;
+        }
         IotSfElementfactor sfElementfactor = new IotSfElementfactor();
         String sfName = null;
         EnumSfElementType elementType = null;