addElement的第一个回复也是广播

master
nxiaoxiao 1 year ago
parent 3083e88137
commit 0082549e0b

@ -24,10 +24,10 @@ namespace OMS.NET.Instructs
{ {
try try
{ {
string id = Data.GetProperty("id").GetString() ?? ""; long id = Data.GetProperty("id").GetInt64();
string type = Data.GetProperty("type").GetString() ?? ""; string type = Data.GetProperty("type").GetString();
string points = Data.GetProperty("points").GetString() ?? ""; string points = Data.GetProperty("points").GetString();
string point = Data.GetProperty("point").GetString() ?? ""; string point = Data.GetProperty("point").GetString();
string? color = Data.GetProperty("color").GetString(); string? color = Data.GetProperty("color").GetString();
int? width = Data.GetProperty("width").GetInt32(); int? width = Data.GetProperty("width").GetInt32();
string? childRelations = Data.GetProperty("childRelations").GetString(); string? childRelations = Data.GetProperty("childRelations").GetString();
@ -67,11 +67,11 @@ namespace OMS.NET.Instructs
string time = GlobalArea.GetCurrentTime(); string time = GlobalArea.GetCurrentTime();
ResponseOrBroadcastInstructs.Add(new BroadcastInstuct() ResponseOrBroadcastInstructs.Add(new BroadcastInstuct()
{ {
IsResponse = true, IsBroadcast = true,
Class = this.Class, Class = this.Class,
Conveyor = conveyor, Conveyor = conveyor,
Time = time, Time = time,
Data = mapData,//todo get sth base64 Data = mapData,
}); });
ResponseOrBroadcastInstructs.Add(new BroadcastInstuct() ResponseOrBroadcastInstructs.Add(new BroadcastInstuct()
{ {
@ -91,7 +91,7 @@ namespace OMS.NET.Instructs
IsResponse = true, IsResponse = true,
Class = "upload", Class = "upload",
Conveyor = conveyor, Conveyor = conveyor,
Time = GlobalArea.GetCurrentTime(), Time = time,
Data = new Dictionary<string, object>() Data = new Dictionary<string, object>()
{ {
{"vid",id}, {"vid",id},

Loading…
Cancel
Save