Skip to content

Commit

Permalink
[#] 修复 #220
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyadanli committed Aug 21, 2021
1 parent 7321739 commit afed24f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
18 changes: 13 additions & 5 deletions RevokeMsgPatcher/Utils/Device.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,21 @@ public static string OSVersion
/// <returns>GUID</returns>
public static string Value()
{
if (fingerPrint == null)
try
{
fingerPrint = GetHash(
"MAC >> " + MacID
);
if (fingerPrint == null)
{
fingerPrint = GetHash(
"MAC >> " + MacID
);
}
return fingerPrint;
}
return fingerPrint;
catch
{
return Guid.NewGuid().ToString();
}

}

private static string GetHash(string s)
Expand Down
6 changes: 3 additions & 3 deletions RevokeMsgPatcher/Utils/GAHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ public static GAHelper Instance
{
get
{
lock (obj)
{
//lock (obj)
//{
if (instance == null)
{
instance = new GAHelper();
}
return instance;
}
//}
}
}

Expand Down

0 comments on commit afed24f

Please sign in to comment.