云平台测试车辆认证

master
lxw 6 months ago
parent ea5d955485
commit 53e43d4f6f

@ -18,7 +18,7 @@ public abstract class CloudApi
/// </summary>
/// <param name="rfidReadModel"></param>
/// <returns></returns>
public static int VehicleCheck(RfidReadModel rfidReadModel, SwapOrder swapOrder)
public static VehicleCertificationResp VehicleCheck(RfidReadModel rfidReadModel, SwapOrder swapOrder)
{
VehicleCertification vehicleCertification = new()
@ -35,12 +35,13 @@ public abstract class CloudApi
CloudClientMgr.CloudClient?.SendVehicleCertification(vehicleCertification,
global::System.TimeSpan.FromSeconds(TimeSpan));
if (sendVehicleCertification == null)
return sendVehicleCertification;
/*if (sendVehicleCertification == null)
{
return -1;
}
return sendVehicleCertification.re;
return sendVehicleCertification.re;*/
}
/// <summary>

@ -42,7 +42,6 @@ namespace Service.Execute
/// </summary>
public static void SwappingStateMachineStart()
{
SoundTool.PlayOneSound(2);
SwappingStateMachine.Start();
}

@ -146,7 +146,8 @@ public class CarPrepareState : IState
if (BaseEnumExtensions.GetEnumByCode<StationConstant.StationModel>(
StaticStationInfo.StationModel) == StationConstant.StationModel.Remote)
{
int vehicleCheck = CloudApi.VehicleCheck(machine.RfidReadModel, machine.SwapOrder);
int vehicleCheck = -1;
//CloudApi.VehicleCheck(machine.RfidReadModel, machine.SwapOrder);
if (vehicleCheck != 0)
{

@ -1,6 +1,10 @@
using Entity.DbModel.Station;
using HybirdFrameworkCore.Entity;
using Microsoft.AspNetCore.Mvc;
using Repository.Station;
using Service.Cloud.Msg.Cloud.Resp;
using Service.Execute.Api;
using Service.Execute.Model;
using SqlSugar;
namespace WebStarter.Controllers.Test;
@ -37,7 +41,22 @@ public class GenController : ControllerBase
Console.WriteLine("生成完毕");
}
[HttpGet("CloudTestVelCheck")]
public Result<VehicleCertificationResp> CloudTestVelCheck()
{
VehicleCertificationResp vehicleCertificationResp = CloudApi.VehicleCheck(new RfidReadModel()
{
VelMac = "111",
VelNo = "LC1HMYBF6R0004575",
VelVin = "LC1HMYBF6R0004575",
}, new SwapOrder()
{
VehicleEnterTime = DateTime.Now
});
return Result<VehicleCertificationResp>.Success(vehicleCertificationResp);
}
[HttpGet("test115")]
public void Test115()
{

Loading…
Cancel
Save