Parcourir la source

修改设备连接枚举类

zhaiyifei il y a 1 an
Parent
commit
428bf8caf1

+ 2 - 2
src/main/java/com/yunfeiyun/agmp/iot/common/enums/IotDeviceconnTypeEnum.java

@@ -16,9 +16,9 @@ public enum IotDeviceconnTypeEnum {
         this.name = name;
     }
 
-    public static String getNameByCode(String name) {
+    public static String getNameByCode(String code) {
         for (IotDeviceconnTypeEnum iotDeviceconnTypeEnum : IotDeviceconnTypeEnum.values()) {
-            if (iotDeviceconnTypeEnum.code.equals(name)) {
+            if (iotDeviceconnTypeEnum.code.equals(code)) {
                 return iotDeviceconnTypeEnum.name;
             }
         }