You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OMS.NET/Instructs/DeleteElementBroadcastInstu...

33 lines
969 B
C#

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
{
}
});
}
}
}