batch mac 返回值错误
This commit is contained in:
parent
b1759df717
commit
faef49d504
@ -495,7 +495,7 @@ public class SydApiBaseFunction implements SydApi {
|
|||||||
byte[] mac = new byte[16];
|
byte[] mac = new byte[16];
|
||||||
byte[] buff = list.get(i);
|
byte[] buff = list.get(i);
|
||||||
System.arraycopy(buff, buff.length - 16, mac, 0, 16);
|
System.arraycopy(buff, buff.length - 16, mac, 0, 16);
|
||||||
ret[i] = Util.bytes2HexString(buff);
|
ret[i] = Util.bytes2HexString(mac);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
@ -516,7 +516,7 @@ public class SydApiBaseFunction implements SydApi {
|
|||||||
byte[] mac = new byte[16];
|
byte[] mac = new byte[16];
|
||||||
byte[] buff = list.get(i);
|
byte[] buff = list.get(i);
|
||||||
System.arraycopy(buff, buff.length - 16, mac, 0, 16);
|
System.arraycopy(buff, buff.length - 16, mac, 0, 16);
|
||||||
ret[i] = Util.bytes2HexString(buff);
|
ret[i] = Util.bytes2HexString(mac);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
@ -566,7 +566,7 @@ public class SydApiBaseFunction implements SydApi {
|
|||||||
byte[] mac = new byte[16];
|
byte[] mac = new byte[16];
|
||||||
byte[] buff = list.get(i);
|
byte[] buff = list.get(i);
|
||||||
System.arraycopy(buff, buff.length - 16, mac, 0, 16);
|
System.arraycopy(buff, buff.length - 16, mac, 0, 16);
|
||||||
ret[i] = pcMac[i].equals(Util.bytes2HexString(buff));
|
ret[i] = pcMac[i].equals(Util.bytes2HexString(mac));
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
@ -587,7 +587,7 @@ public class SydApiBaseFunction implements SydApi {
|
|||||||
byte[] mac = new byte[16];
|
byte[] mac = new byte[16];
|
||||||
byte[] buff = list.get(i);
|
byte[] buff = list.get(i);
|
||||||
System.arraycopy(buff, buff.length - 16, mac, 0, 16);
|
System.arraycopy(buff, buff.length - 16, mac, 0, 16);
|
||||||
ret[i] = pcMac[i].equals(Util.bytes2HexString(buff));
|
ret[i] = pcMac[i].equals(Util.bytes2HexString(mac));
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user