Commit 1bfba870 authored by zhanglongtao's avatar zhanglongtao

update

parent 24d85b21
......@@ -147,10 +147,10 @@ namespace HYH.Registry.Services.Encryption
string netCardMACAddress = ComputerInfoHelper.GetMACIp();
string hostName = ComputerInfoHelper.GetHostName();
var tenant = await _repTenant.FirstOrDefaultAsync(q => q.Code == _currentUser.TenantCode);
if (!string.IsNullOrEmpty(tenant.Registry_cipher))
if (!string.IsNullOrEmpty(tenant.RegistryCipher))
{
// 解密
var dataString = AESHelper.AESDecrypt(tenant.Registry_cipher, "jianzhukeji", "jzkj");
var dataString = AESHelper.AESDecrypt(tenant.RegistryCipher, "jianzhukeji", "jzkj");
string timeStr = dataString.Substring(0, 19);
DateTime dateTime = Convert.ToDateTime(timeStr);
if (dateTime > DateTime.Now)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment