mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-02 04:57:57 +08:00
update 打印日志
This commit is contained in:
@@ -786,6 +786,7 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
|
|||||||
public byte[] pushYuxinReservationChargingCommand(YuxinReservationChargingCommand command) {
|
public byte[] pushYuxinReservationChargingCommand(YuxinReservationChargingCommand command) {
|
||||||
String pileSn = command.getPileSn();
|
String pileSn = command.getPileSn();
|
||||||
byte[] msg = buildYuxinReservationChargingMsg(command);
|
byte[] msg = buildYuxinReservationChargingMsg(command);
|
||||||
|
log.info("羽信预约充电下发原始报文, pileSn:{}, rawMessage:{}", pileSn, BytesUtil.bin2HexStr(msg));
|
||||||
byte[] response;
|
byte[] response;
|
||||||
try {
|
try {
|
||||||
response = this.supplySend(msg, pileSn, YKCFrameTypeCode.YUXIN_RESERVATION_CHARGING_SETUP_CODE);
|
response = this.supplySend(msg, pileSn, YKCFrameTypeCode.YUXIN_RESERVATION_CHARGING_SETUP_CODE);
|
||||||
@@ -793,6 +794,8 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
|
|||||||
log.error("发送羽信预约充电消息异常", e);
|
log.error("发送羽信预约充电消息异常", e);
|
||||||
response = null;
|
response = null;
|
||||||
}
|
}
|
||||||
|
log.info("羽信预约充电回复原始报文, pileSn:{}, rawMessage:{}",
|
||||||
|
pileSn, response == null ? "null" : BytesUtil.bin2HexStr(response));
|
||||||
|
|
||||||
log.info("【=====平台下发指令=====】: 羽信预约充电指令, 帧类型:{}, 交易流水号:{}, 桩编号:{}, 枪口号:{}, 账户余额:{}, 预约类型(00-立即预约;01-取消预约):{}, 充电策略:{}, 充电参数:{}, 系统时间:{}, 预约启动时间:{}, 预约超时时间:{}",
|
log.info("【=====平台下发指令=====】: 羽信预约充电指令, 帧类型:{}, 交易流水号:{}, 桩编号:{}, 枪口号:{}, 账户余额:{}, 预约类型(00-立即预约;01-取消预约):{}, 充电策略:{}, 充电参数:{}, 系统时间:{}, 预约启动时间:{}, 预约超时时间:{}",
|
||||||
YKCUtils.frameType2Str(YKCFrameTypeCode.YUXIN_RESERVATION_CHARGING_SETUP_CODE.getBytes()),
|
YKCUtils.frameType2Str(YKCFrameTypeCode.YUXIN_RESERVATION_CHARGING_SETUP_CODE.getBytes()),
|
||||||
|
|||||||
Reference in New Issue
Block a user