using System.Text.Json; namespace OMS.NET.Instructs { public class DeleteElementBroadcastInstruct : BroadcastInstuct { public DeleteElementBroadcastInstruct() { this.Class = "deleteElement"; } public override Task Handler(string wsid) { return Task.Run(() => { if (!GlobalArea.LoginCheckByID(wsid)) return;//登录检查不通过则直接退出 if (Data?.GetType() != typeof(JsonElement)) return; try { string conveyor = GlobalArea.GetLoginEmailByID(wsid); //解析id和tmpId long id = Data.GetProperty("id").GetInt64(); string tmpId = Data.GetProperty("tmpId").GetString(); //需要先实现activeData相关 } catch { } }); } } }