|
@@ -431,7 +431,7 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
var authorization_result = await businessService.Authorize(session.ChargeBoxId, _request.idTag);
|
|
|
_idTagInfo = authorization_result.IdTagInfo;
|
|
|
|
|
|
- if (authorization_result.ChargePointFee != null)
|
|
|
+ if (_idTagInfo.status == AuthorizationStatus.Accepted && authorization_result.ChargePointFee != null)
|
|
|
{
|
|
|
var price = authorization_result.ChargePointFee.Where(x => x.IsAC == session.IsAC).First();
|
|
|
if (price != null)
|
|
@@ -717,7 +717,7 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
var authorization_result = await businessService.Authorize(session.ChargeBoxId, _request.idTag);
|
|
|
confirm.idTagInfo = authorization_result.IdTagInfo;
|
|
|
|
|
|
- if (authorization_result.ChargePointFee != null)
|
|
|
+ if (confirm.idTagInfo.status== AuthorizationStatus.Accepted && authorization_result.ChargePointFee != null)
|
|
|
{
|
|
|
var price = authorization_result.ChargePointFee.Where(x => x.IsAC == session.IsAC).First();
|
|
|
if (price != null)
|