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/DeleteElementInstuct.cs

33 lines
977 B
C#

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