|
@@ -199,7 +199,7 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
|
|
|
// });
|
|
|
|
|
|
- var confirm = new HeartbeatConfirmation() { currentTime = DateTime.Now.AddHours(-6) };
|
|
|
+ var confirm = new HeartbeatConfirmation() { currentTime = DateTime.Now };
|
|
|
result.Message = confirm;
|
|
|
result.Success = true;
|
|
|
}
|
|
@@ -328,7 +328,9 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
int _ConnectorId = 0;
|
|
|
|
|
|
var businessService = BusinessServiceFactory.CreateBusinessService(session.CustomerId.ToString());
|
|
|
- var _idTagInfo = _request.idTag == "Backend" ? new IdTagInfo() { expiryDate = DateTime.UtcNow.AddDays(1), status = AuthorizationStatus.Accepted } : await businessService.Authorize(session.ChargeBoxId, _request.idTag);
|
|
|
+
|
|
|
+
|
|
|
+ var _idTagInfo = string.IsNullOrEmpty(_request.idTag)? null:(_request.idTag == "Backend" ? new IdTagInfo() { expiryDate = DateTime.UtcNow.AddDays(1), status = AuthorizationStatus.Accepted } : await businessService.Authorize(session.ChargeBoxId, _request.idTag));
|
|
|
|
|
|
|
|
|
|