From 36d01d5f6b7d95e13412a548b565a9977c951f6c Mon Sep 17 00:00:00 2001 From: lxw Date: Fri, 13 Sep 2024 16:35:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E7=94=B5=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Execute/SwappingStateMachine.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Service/Execute/SwappingStateMachine.cs b/Service/Execute/SwappingStateMachine.cs index 578db01..efcdfb3 100644 --- a/Service/Execute/SwappingStateMachine.cs +++ b/Service/Execute/SwappingStateMachine.cs @@ -329,12 +329,15 @@ public class SwappingStateMachine : IDisposable SwapOrderBatteryInfo = null; StepSort = 0; - + StepModel = + new ConcurrentDictionary + (); Array values = Enum.GetValues(typeof(InfoEnum.BusinessSwappingStep)); foreach (var value in values) { - - StepModel[value.ToString()] = new StepModel() + + + StepModel[value.ToInt()+""] = new StepModel() { StepNo = (int)value, Status = 0,