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