mirror of
https://github.com/Queercon/QC14-Badge-Webview.git
synced 2025-08-20 21:33:29 -07:00
extract badgeid
This commit is contained in:
parent
26ae279c70
commit
daa23002c2
1 changed files with 19 additions and 0 deletions
|
@ -138,6 +138,7 @@ namespace qcbadge.Controllers
|
|||
// 0908[0000000000000000] < -End + Crypto
|
||||
//
|
||||
// 0x0201040319DC190FFFD304AAAABBCCDDDDDDDDDDEE09080000000000000000
|
||||
// 0x0201040319DC190FFFD3040122BBCCDDDDDDDDDDEE09080000000000000000 = Badgeid = 122/290
|
||||
|
||||
if (String.IsNullOrEmpty(advertData))
|
||||
{
|
||||
|
@ -152,7 +153,25 @@ namespace qcbadge.Controllers
|
|||
|
||||
if(advertData.StartsWith(header) && advertData.EndsWith(footer))
|
||||
{
|
||||
System.Diagnostics.Debug.WriteLine("*************************************");
|
||||
System.Diagnostics.Debug.WriteLine("*************************************");
|
||||
System.Diagnostics.Debug.WriteLine("*************************************");
|
||||
System.Diagnostics.Debug.WriteLine("*************************************");
|
||||
System.Diagnostics.Debug.WriteLine("*************************************");
|
||||
System.Diagnostics.Debug.WriteLine("*************************************");
|
||||
System.Diagnostics.Debug.WriteLine("*************************************");
|
||||
System.Diagnostics.Debug.WriteLine("*************************************");
|
||||
System.Diagnostics.Debug.WriteLine("*************************************");
|
||||
System.Diagnostics.Debug.WriteLine("*************************************");
|
||||
String qcData = advertData.Substring(24, 20);
|
||||
System.Diagnostics.Debug.WriteLine(qcData);
|
||||
|
||||
int badgeId = Convert.ToInt32(qcData.Substring(0, 3), 16);
|
||||
System.Diagnostics.Debug.WriteLine(badgeId);
|
||||
|
||||
|
||||
return StatusCode(200);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue