[#] 修复 #220
This commit is contained in:
@@ -49,6 +49,8 @@ namespace RevokeMsgPatcher.Utils
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>GUID</returns>
|
/// <returns>GUID</returns>
|
||||||
public static string Value()
|
public static string Value()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if (fingerPrint == null)
|
if (fingerPrint == null)
|
||||||
{
|
{
|
||||||
@@ -58,6 +60,12 @@ namespace RevokeMsgPatcher.Utils
|
|||||||
}
|
}
|
||||||
return fingerPrint;
|
return fingerPrint;
|
||||||
}
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
return Guid.NewGuid().ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private static string GetHash(string s)
|
private static string GetHash(string s)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user