update 打印日志

This commit is contained in:
jsowell
2026-06-26 15:45:10 +08:00
parent ddcf6abb3e
commit e2c0d7fd34

View File

@@ -786,6 +786,7 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
public byte[] pushYuxinReservationChargingCommand(YuxinReservationChargingCommand command) {
String pileSn = command.getPileSn();
byte[] msg = buildYuxinReservationChargingMsg(command);
log.info("羽信预约充电下发原始报文, pileSn:{}, rawMessage:{}", pileSn, BytesUtil.bin2HexStr(msg));
byte[] response;
try {
response = this.supplySend(msg, pileSn, YKCFrameTypeCode.YUXIN_RESERVATION_CHARGING_SETUP_CODE);
@@ -793,6 +794,8 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
log.error("发送羽信预约充电消息异常", e);
response = null;
}
log.info("羽信预约充电回复原始报文, pileSn:{}, rawMessage:{}",
pileSn, response == null ? "null" : BytesUtil.bin2HexStr(response));
log.info("【=====平台下发指令=====】: 羽信预约充电指令, 帧类型:{}, 交易流水号:{}, 桩编号:{}, 枪口号:{}, 账户余额:{}, 预约类型(00-立即预约;01-取消预约):{}, 充电策略:{}, 充电参数:{}, 系统时间:{}, 预约启动时间:{}, 预约超时时间:{}",
YKCUtils.frameType2Str(YKCFrameTypeCode.YUXIN_RESERVATION_CHARGING_SETUP_CODE.getBytes()),