update 电单车

This commit is contained in:
Guoqs
2024-09-14 15:42:10 +08:00
parent 6b58dd8de3
commit 83bd5f9071
2 changed files with 2 additions and 1 deletions

View File

@@ -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<>();

View File

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