mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
update 电单车协议
This commit is contained in:
@@ -372,7 +372,7 @@ public class BytesUtil {
|
||||
*/
|
||||
public static byte[] str2BcdLittle(String asc) {
|
||||
byte[] temp = str2Bcd(asc);
|
||||
return revert(temp);
|
||||
return reverse(temp);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
@@ -494,7 +494,7 @@ public class BytesUtil {
|
||||
* @return
|
||||
*/
|
||||
public static String ascii2StrLittle(byte[] ascs) {
|
||||
byte[] data = revert(ascs);
|
||||
byte[] data = reverse(ascs);
|
||||
String asciiStr = null;
|
||||
try {
|
||||
asciiStr = new String(data, "ISO8859-1");
|
||||
@@ -526,7 +526,7 @@ public class BytesUtil {
|
||||
* @return
|
||||
*/
|
||||
public static byte[] str2AscLittle(String str) {
|
||||
return revert(str2Asc(str));
|
||||
return reverse(str2Asc(str));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -550,7 +550,7 @@ public class BytesUtil {
|
||||
* @param temp
|
||||
* @return
|
||||
*/
|
||||
public static byte[] revert(byte[] temp) {
|
||||
public static byte[] reverse(byte[] temp) {
|
||||
byte[] ret = new byte[temp.length];
|
||||
for (int i = 0; i < temp.length; i++) {
|
||||
ret[temp.length - i - 1] = temp[i];
|
||||
|
||||
Reference in New Issue
Block a user