update 电单车

This commit is contained in:
Guoqs
2024-09-14 16:07:59 +08:00
parent 83bd5f9071
commit e85e630282
4 changed files with 33 additions and 82 deletions

View File

@@ -124,7 +124,16 @@ public class YKCUtils {
*/
public static String frameType2Str(byte[] bytes) {
String s = BytesUtil.bin2HexStr(bytes);
return Constants.HEX_PREFIX + s;
return frameType2Str(s);
}
/**
* 如:"01"--> "0x01"
* @param frameType 帧类型
* @return
*/
public static String frameType2Str(String frameType) {
return Constants.HEX_PREFIX + frameType;
}
public static byte[] frameTypeStr2Bytes(String frameTypeStr) {