配置文件升级+修改(重要更新!)
This commit is contained in:
19
U8Server/Util/GetSign.cs
Normal file
19
U8Server/Util/GetSign.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Globalization;
|
||||
using U8Server.Extensions;
|
||||
|
||||
namespace U8Server.Util
|
||||
{
|
||||
public class GetSign
|
||||
{
|
||||
public static string GetBy16Md5()
|
||||
{
|
||||
string appId = "gN9yId!!lfwaRoi3";
|
||||
string appSecret = "xr35$IQAutBRX1UYhgOUY#CqChI#Y3b$";
|
||||
string timestamp = DateTime.Now.ToString("yyyyMMddHHmmss", CultureInfo.InvariantCulture);
|
||||
string key = $"{appSecret}{appId}{timestamp}{appSecret}";
|
||||
string sign = key.ToMD5Encrypt(uppercase: false, is16bit: true)
|
||||
?? throw new InvalidOperationException("MD5加密失败");
|
||||
return sign;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user