Merge branch 'master' of http://www.scserverddns.top:13000/sc/SunlightAggregationManager
This commit is contained in:
commit
480d705255
3 files changed
+29
-20
No files matched your search
@@ -60,21 +60,22 @@ namespace SunlightAggregationManager.UserClass
|
||||
if (_dat != "99")
|
||||
{
|
||||
//行为
|
||||
Dictionary<string, object> myDict = new Dictionary<string, object>();
|
||||
myDict.Add("LinkID", client.Id);
|
||||
myDict.Add("LastLoginIP", deserializedPerson?.IP ?? client.IP);
|
||||
myDict.Add("LastActionTime", DateTime.Now);
|
||||
myDict.Add("Note", deserializedPerson?.Dat ?? "unknown");
|
||||
MainWindowViewModel.Updata_Memory(MainWindowViewModel._userData, "User='" + deserializedPerson?.User + "'", myDict);
|
||||
Dictionary<string, object> myDict = new Dictionary<string, object>();
|
||||
myDict.Add("LinkID", client.Id);
|
||||
myDict.Add("LastLoginIP", deserializedPerson?.IP ?? client.IP);
|
||||
myDict.Add("LastActionTime", DateTime.Now);
|
||||
myDict.Add("Note", deserializedPerson?.Dat ?? "unknown");
|
||||
MainWindowViewModel.Updata_Memory(MainWindowViewModel._userData, "User='" + deserializedPerson?.User + "'", myDict);
|
||||
|
||||
Console.WriteLine("[Log on]User[" + deserializedPerson?.User + "]Note[" + (deserializedPerson?.Dat ?? "unknown") + "]");
|
||||
|
||||
var dt = await Command(deserializedPerson!);
|
||||
Console.WriteLine("[Log on]User[" + deserializedPerson?.User + "]Note[" + (deserializedPerson?.Dat ?? "unknown") + "]");
|
||||
|
||||
e.Context.Response.Headers.Add("SUNLIGHT", "SUNLIGHT");
|
||||
e.Context.Response.SetStatus(200, "success");
|
||||
e.Context.Response.SetContent(Encoding.UTF8.GetBytes(dt.ToCharArray()));
|
||||
await e.Context.Response.AnswerAsync();
|
||||
deserializedPerson!.Dat = await Command(deserializedPerson!);
|
||||
var jsdat = JsonSerializer.Serialize(deserializedPerson);
|
||||
|
||||
e.Context.Response.Headers.Add("SUNLIGHT", "SUNLIGHT");
|
||||
e.Context.Response.SetStatus(200, "success");
|
||||
e.Context.Response.SetContent(jsdat);
|
||||
await e.Context.Response.AnswerAsync();
|
||||
}
|
||||
else
|
||||
{//停用账号关闭连接
|
||||
|
||||
Reference in new issue
Block a user