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.
32 lines
1.0 KiB
C#
32 lines
1.0 KiB
C#
using System.Text.Json;
|
|
|
|
namespace OMS.NET.Instructs
|
|
{
|
|
public class BatchDeleteElementInstruct : Instruct
|
|
{
|
|
public BatchDeleteElementInstruct()
|
|
{
|
|
Type = "broadcast";
|
|
Class = "batchDeleteElement";
|
|
}
|
|
|
|
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);
|
|
//string time = GlobalArea.GetCurrentTime();
|
|
throw new NotImplementedException("这个也不想搞了");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
GlobalArea.Log.Warn($"处理{Class}广播指令出错:" + ex.Message);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
} |