From 8ce53d328a71219dc7abbc711d087b070f3f5b31 Mon Sep 17 00:00:00 2001 From: smartwyy <645583145@qq.com> Date: Mon, 27 May 2024 15:17:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E6=96=87=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Car/Msg/BaseMsg.cs | 2 ++ WebStarter/Controllers/CarController.cs | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/Service/Car/Msg/BaseMsg.cs b/Service/Car/Msg/BaseMsg.cs index ce5fed6..44cf84e 100644 --- a/Service/Car/Msg/BaseMsg.cs +++ b/Service/Car/Msg/BaseMsg.cs @@ -32,6 +32,8 @@ public class BaseMsg : IToBytes [Property(184 + 5 * 8, 8)] public byte Min { get; set; } [Property(184 + 6 * 8, 8)] public byte Second { get; set; } + [Property(184 + 7 * 8, 8)] public byte NotUsed { get; set; } = 0; + public void InitCurrentTime() { DateTime now = DateTime.Now; diff --git a/WebStarter/Controllers/CarController.cs b/WebStarter/Controllers/CarController.cs index 7017e15..5a23a6d 100644 --- a/WebStarter/Controllers/CarController.cs +++ b/WebStarter/Controllers/CarController.cs @@ -126,6 +126,11 @@ public class CarController : ControllerBase return true; } + /// + /// 清空数据 + /// + /// + [HttpGet("/clear")] public bool Clear() { if (CarServerMgr.CarServer?.CarNo == null)