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.
24 lines
668 B
C#
24 lines
668 B
C#
namespace OMS.NET.Instructs
|
|
{
|
|
public class GetActiveDataInstruct : Instruct
|
|
{
|
|
public GetActiveDataInstruct()
|
|
{
|
|
Type = "get_activeData";
|
|
}
|
|
|
|
public override Task Handler(string wsid)
|
|
{
|
|
return Task.Run(() =>
|
|
{
|
|
if (!GlobalArea.LoginCheckByID(wsid)) return;//登录检查,不通过则直接退出
|
|
ResponseOrBroadcastInstructs.Add(new Instruct()
|
|
{
|
|
IsResponse = true,
|
|
Type = "send_activeData",
|
|
Data = GlobalArea.GetActiveDataList
|
|
});
|
|
});
|
|
}
|
|
}
|
|
} |