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:
@@ -47,6 +47,7 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
|
||||
private static final BigDecimal DEFAULT_YUXIN_CHARGING_PARAM = BigDecimal.ZERO;
|
||||
private static final int DEFAULT_YUXIN_CHARGING_STRATEGY = 0;
|
||||
private static final int DEFAULT_YUXIN_RESERVATION_TIMEOUT = 0;
|
||||
private static final int YUXIN_RESERVATION_RESPONSE_TIMEOUT_SECONDS = 5;
|
||||
|
||||
@Autowired
|
||||
private PileBillingTemplateService pileBillingTemplateService;
|
||||
@@ -789,7 +790,8 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
|
||||
log.info("羽信预约充电下发原始报文, pileSn:{}, rawMessage:{}", pileSn, BytesUtil.bin2HexStr(msg));
|
||||
byte[] response;
|
||||
try {
|
||||
response = this.supplySend(msg, pileSn, YKCFrameTypeCode.YUXIN_RESERVATION_CHARGING_SETUP_CODE);
|
||||
response = this.supplySend(msg, pileSn, YKCFrameTypeCode.YUXIN_RESERVATION_CHARGING_SETUP_CODE,
|
||||
YUXIN_RESERVATION_RESPONSE_TIMEOUT_SECONDS, TimeUnit.SECONDS);
|
||||
} catch (Exception e) {
|
||||
log.error("发送羽信预约充电消息异常", e);
|
||||
response = null;
|
||||
|
||||
Reference in New Issue
Block a user