This commit is contained in:
huiyadanli 2021-08-21 12:08:22 +08:00
parent 7321739fa0
commit afed24f30c
2 changed files with 16 additions and 8 deletions

View File

@ -50,13 +50,21 @@ namespace RevokeMsgPatcher.Utils
/// <returns>GUID</returns> /// <returns>GUID</returns>
public static string Value() public static string Value()
{ {
if (fingerPrint == null) try
{ {
fingerPrint = GetHash( if (fingerPrint == null)
"MAC >> " + MacID {
); fingerPrint = GetHash(
"MAC >> " + MacID
);
}
return fingerPrint;
} }
return fingerPrint; catch
{
return Guid.NewGuid().ToString();
}
} }
private static string GetHash(string s) private static string GetHash(string s)

View File

@ -24,14 +24,14 @@ namespace RevokeMsgPatcher.Utils
{ {
get get
{ {
lock (obj) //lock (obj)
{ //{
if (instance == null) if (instance == null)
{ {
instance = new GAHelper(); instance = new GAHelper();
} }
return instance; return instance;
} //}
} }
} }