update 电单车协议

This commit is contained in:
Guoqs
2024-09-03 16:24:03 +08:00
parent e5100ef65f
commit a6f1b48cd1
3 changed files with 37 additions and 15 deletions

View File

@@ -84,6 +84,7 @@ public class TempController extends BaseController {
RestApiResponse<?> response = null;
try {
eBikeSendCommandService.startCharging(dto.getPileSn(), dto.getConnectorCode());
response = new RestApiResponse<>();
} catch (Exception e) {
logger.error("电单车开始充电 error", e);
response = new RestApiResponse<>(ReturnCodeEnum.CODE_FAILED);