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:
@@ -60,7 +60,7 @@ public class ChargingOperationResponse extends AbsEBikeMessage2 {
|
||||
protected void parseMessage(byte[] messageBytes) {
|
||||
super.parseMessage(messageBytes);
|
||||
// 截取数据
|
||||
byte[] bytes = BytesUtil.copyBytes(messageBytes, 11, this.msgLength);
|
||||
byte[] bytes = BytesUtil.copyBytes(messageBytes, 12, this.msgLength);
|
||||
ChargingOperationResponse response = new ChargingOperationResponse(bytes);
|
||||
System.out.println(JSON.toJSONString(response));
|
||||
}
|
||||
@@ -70,6 +70,6 @@ public class ChargingOperationResponse extends AbsEBikeMessage2 {
|
||||
byte[] messageBytes = BytesUtil.hexStringToByteArray(s);
|
||||
ChargingOperationResponse response = new ChargingOperationResponse(messageBytes);
|
||||
response.parseMessage(messageBytes);
|
||||
System.out.println(response);
|
||||
// System.out.println(response);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user