入库和出库

This commit is contained in:
qianhao.xu
2025-06-09 16:41:15 +08:00
parent 7b546e5979
commit 0d9571a5b7
8 changed files with 314 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
using System;
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;
}
}
}