mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 20:15:06 +08:00
同步获取响应数据
This commit is contained in:
@@ -26,6 +26,7 @@ import java.net.InetAddress;
|
||||
import java.net.UnknownHostException;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
@Service
|
||||
public class PileRemoteService {
|
||||
@@ -287,9 +288,17 @@ public class PileRemoteService {
|
||||
|
||||
/**
|
||||
* 预约充电指令/预约指令
|
||||
* @return result: 1-成功; 0-失败
|
||||
*/
|
||||
public void reservationCharging(ReservationChargingCommand command) {
|
||||
ykcPushCommandService.pushReservationChargingCommand(command);
|
||||
public String reservationCharging(ReservationChargingCommand command) {
|
||||
String result = "1";
|
||||
byte[] bytes = ykcPushCommandService.pushReservationChargingCommand(command);
|
||||
// 解析结果
|
||||
if (Objects.isNull(bytes)) {
|
||||
result = "0";
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user