WHHHHYYYYYYY NOT WORK?!?!?
This commit is contained in:
shinichi
2020-09-16 13:10:59 +02:00
parent ececffef3f
commit ae4fd1f093
2 changed files with 35 additions and 13 deletions

View File

@@ -27,6 +27,24 @@ namespace RH_Engine
}
public static string GetSessionID(string msg, PC[] PCs)
{
dynamic jsonData = JsonConvert.DeserializeObject(msg);
Newtonsoft.Json.Linq.JArray data = jsonData.data;
foreach (dynamic d in data)
{
foreach(PC pc in PCs)
{
if (d.clientinfo.host == pc.host && d.clientinfo.user == pc.user)
{
return d.id;
}
}
}
return null;
}
}
}