|
|
|
@ -7,6 +7,7 @@ using Entity.Dto;
|
|
|
|
|
using HybirdFrameworkCore.Autofac;
|
|
|
|
|
using log4net;
|
|
|
|
|
using Repository.Station;
|
|
|
|
|
using Service.Cloud.Msg.Cloud.Resp;
|
|
|
|
|
using Service.Execute.Api;
|
|
|
|
|
using Service.Execute.Model;
|
|
|
|
|
using Service.Execute.StaticTools;
|
|
|
|
@ -147,10 +148,9 @@ public class CarPrepareState : IState
|
|
|
|
|
BaseEnumExtensions.GetEnumByCode<StationConstant.StationModel>(
|
|
|
|
|
StaticStationInfo.StationModel))
|
|
|
|
|
{
|
|
|
|
|
int vehicleCheck = -1;
|
|
|
|
|
vehicleCheck = CloudApi.VehicleCheck(machine.RfidReadModel, machine.SwapOrder);
|
|
|
|
|
VehicleCertificationResp? vehicleCertificationResp = CloudApi.VehicleCheck(machine.RfidReadModel, machine.SwapOrder);
|
|
|
|
|
|
|
|
|
|
if (vehicleCheck != 0)
|
|
|
|
|
if (vehicleCertificationResp==null || vehicleCertificationResp.re!=0)
|
|
|
|
|
{
|
|
|
|
|
_log.Info("cloud check vehicle error");
|
|
|
|
|
// machine.LedTool?.WriteProgramContent("换电准备中:云平台车辆验证完成");
|
|
|
|
@ -162,8 +162,7 @@ public class CarPrepareState : IState
|
|
|
|
|
machine.CloudVelCheckFlag = true;
|
|
|
|
|
// machine.LedTool?.WriteProgramContent("换电准备中:云平台车辆验证完成");
|
|
|
|
|
|
|
|
|
|
//TODO::
|
|
|
|
|
// machine.SwapOrder.CloudSn=
|
|
|
|
|
machine.SwapOrder.CloudSn = vehicleCertificationResp.on;
|
|
|
|
|
_CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.CloudVelCheckFlag,
|
|
|
|
|
machine);
|
|
|
|
|
}
|
|
|
|
|