[#] 修复 #220
This commit is contained in:
@@ -50,13 +50,21 @@ namespace RevokeMsgPatcher.Utils
|
||||
/// <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)
|
||||
|
||||
@@ -24,14 +24,14 @@ namespace RevokeMsgPatcher.Utils
|
||||
{
|
||||
get
|
||||
{
|
||||
lock (obj)
|
||||
{
|
||||
//lock (obj)
|
||||
//{
|
||||
if (instance == null)
|
||||
{
|
||||
instance = new GAHelper();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user