From 0082549e0b129c4169ca6e6d4403932062acb433 Mon Sep 17 00:00:00 2001 From: nxiaoxiao <3247747442@qq.com> Date: Fri, 16 Aug 2024 20:59:59 +0800 Subject: [PATCH] =?UTF-8?q?addElement=E7=9A=84=E7=AC=AC=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E4=B9=9F=E6=98=AF=E5=B9=BF=E6=92=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Instructs/AddElementBroadcastInstruct.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Instructs/AddElementBroadcastInstruct.cs b/Instructs/AddElementBroadcastInstruct.cs index 2213a6d..3dd109e 100644 --- a/Instructs/AddElementBroadcastInstruct.cs +++ b/Instructs/AddElementBroadcastInstruct.cs @@ -24,10 +24,10 @@ namespace OMS.NET.Instructs { try { - string id = Data.GetProperty("id").GetString() ?? ""; - string type = Data.GetProperty("type").GetString() ?? ""; - string points = Data.GetProperty("points").GetString() ?? ""; - string point = Data.GetProperty("point").GetString() ?? ""; + long id = Data.GetProperty("id").GetInt64(); + string type = Data.GetProperty("type").GetString(); + string points = Data.GetProperty("points").GetString(); + string point = Data.GetProperty("point").GetString(); string? color = Data.GetProperty("color").GetString(); int? width = Data.GetProperty("width").GetInt32(); string? childRelations = Data.GetProperty("childRelations").GetString(); @@ -67,11 +67,11 @@ namespace OMS.NET.Instructs string time = GlobalArea.GetCurrentTime(); ResponseOrBroadcastInstructs.Add(new BroadcastInstuct() { - IsResponse = true, + IsBroadcast = true, Class = this.Class, Conveyor = conveyor, Time = time, - Data = mapData,//todo get sth base64 + Data = mapData, }); ResponseOrBroadcastInstructs.Add(new BroadcastInstuct() { @@ -91,7 +91,7 @@ namespace OMS.NET.Instructs IsResponse = true, Class = "upload", Conveyor = conveyor, - Time = GlobalArea.GetCurrentTime(), + Time = time, Data = new Dictionary() { {"vid",id},