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() + "";