mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
打印日志
This commit is contained in:
@@ -51,13 +51,14 @@ public enum EBikeCommandEnum {
|
||||
return BytesUtil.intToBytesLittle(code, 1);
|
||||
}
|
||||
|
||||
// public static Class<? extends AbsEBikeMessage> getMsgClassByCode(String code) {
|
||||
// for (EBikeCommandEnum e : EBikeCommandEnum.values()) {
|
||||
// if (e.getCode().equals(code)) {
|
||||
// return e.getMsgClass();
|
||||
// }
|
||||
// }
|
||||
// return null;
|
||||
// }
|
||||
// 根据code获取desc
|
||||
public static String getDescByCode(int code) {
|
||||
for (EBikeCommandEnum e : EBikeCommandEnum.values()) {
|
||||
if (e.getCode() == code) {
|
||||
return e.getDesc();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user