其他指令也一次性添加上去
parent
829bf729e5
commit
2550084b66
@ -0,0 +1,31 @@
|
||||
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();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
GlobalArea.Log.Warn($"处理{Class}广播指令出错:" + ex.Message);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
using System.Text.Json;
|
||||
|
||||
namespace OMS.NET.Instructs
|
||||
{
|
||||
public class DeleteLayerAndMembersInstuct : Instruct
|
||||
{
|
||||
public DeleteLayerAndMembersInstuct()
|
||||
{
|
||||
Type = "broadcast";
|
||||
Class = "deleteLayerAndMembers";
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
GlobalArea.Log.Warn($"处理{Class}广播指令出错:" + ex.Message);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
using System.Text.Json;
|
||||
|
||||
namespace OMS.NET.Instructs
|
||||
{
|
||||
public class ForceUpdateDataInstruct : Instruct
|
||||
{
|
||||
public ForceUpdateDataInstruct()
|
||||
{
|
||||
Type = "broadcast";
|
||||
Class = "forceUpdate";
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
GlobalArea.Log.Warn($"处理{Class}广播指令出错:" + ex.Message);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
using System.Text.Json;
|
||||
|
||||
namespace OMS.NET.Instructs
|
||||
{
|
||||
public class RenameLayerInstruct : Instruct
|
||||
{
|
||||
public RenameLayerInstruct()
|
||||
{
|
||||
Type = "broadcast";
|
||||
Class = "renameLayer";
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
GlobalArea.Log.Warn($"处理{Class}广播指令出错:" + ex.Message);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
using System.Text.Json;
|
||||
|
||||
namespace OMS.NET.Instructs
|
||||
{
|
||||
public class UpdateTemplateDataInstruct : Instruct
|
||||
{
|
||||
public UpdateTemplateDataInstruct()
|
||||
{
|
||||
Type = "broadcast";
|
||||
Class = "updateTemplateData";
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
GlobalArea.Log.Warn($"处理{Class}广播指令出错:" + ex.Message);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue