From 83bd5f9071615f6eb4695248b5cc3b64873ac75e Mon Sep 17 00:00:00 2001 From: Guoqs <123@jsowell.com> Date: Sat, 14 Sep 2024 15:42:10 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=94=B5=E5=8D=95=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/jsowell/api/uniapp/customer/TempController.java | 1 + .../jsowell/pile/service/impl/EBikeSendCommandServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/jsowell-admin/src/main/java/com/jsowell/api/uniapp/customer/TempController.java b/jsowell-admin/src/main/java/com/jsowell/api/uniapp/customer/TempController.java index f59cb3bcb..9dd200d15 100644 --- a/jsowell-admin/src/main/java/com/jsowell/api/uniapp/customer/TempController.java +++ b/jsowell-admin/src/main/java/com/jsowell/api/uniapp/customer/TempController.java @@ -88,6 +88,7 @@ public class TempController extends BaseController { StartChargingCommand command = StartChargingCommand.builder() .pileSn(dto.getPileSn()) .connectorCode(dto.getConnectorCode()) + .chargeAmount(new BigDecimal("1")) .build(); eBikeSendCommandService.sendStartChargingCommand(command); response = new RestApiResponse<>(); diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/EBikeSendCommandServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/EBikeSendCommandServiceImpl.java index 6b75c2a76..dfc361f4f 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/EBikeSendCommandServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/EBikeSendCommandServiceImpl.java @@ -136,7 +136,7 @@ public class EBikeSendCommandServiceImpl implements EBikeSendCommandService { * @param msg */ private byte[] send(AbsEBikeMessage msg) throws Exception { - return this.send(msg, 3, TimeUnit.SECONDS); + return this.send(msg, 5, TimeUnit.SECONDS); } private byte[] send(AbsEBikeMessage msg, long timeout, TimeUnit unit) throws Exception { String pileSn = msg.getPhysicalId() + "";