移除不符合协议的停机消息字段

This commit is contained in:
ZZ 2021-08-05 20:24:49 +08:00
parent 5459059c63
commit c845658b88

View File

@ -205,7 +205,7 @@ public class ChargingController {
data = ArrayUtils.addAll(data, HexUtils.toBytes(pileNo));
data = ArrayUtils.addAll(data, HexUtils.toBytes(gunId));
}
String msg = HexUtils.toHex(data).concat(ServiceResult.HEX_OK);
String msg = HexUtils.toHex(data);
msg = msg.concat(CRCCalculator.calcCrc(msg));
log.info("stop charging, send msg to terminal ({}{}) >>>> {}", pileNo, gunId, msg);
return HexUtils.toBytes(msg);