mirror of
https://github.com/huiyadanli/RevokeMsgPatcher.git
synced 2025-07-08 08:26:08 +08:00
[#] 修复 #220
This commit is contained in:
parent
7321739fa0
commit
afed24f30c
|
@ -49,6 +49,8 @@ namespace RevokeMsgPatcher.Utils
|
|||
/// </summary>
|
||||
/// <returns>GUID</returns>
|
||||
public static string Value()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (fingerPrint == null)
|
||||
{
|
||||
|
@ -58,6 +60,12 @@ namespace RevokeMsgPatcher.Utils
|
|||
}
|
||||
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;
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user