Browse Source

Update SystemService.cs

Dev
Janie 2 years ago
parent
commit
f079c8e6f2
  1. 4
      EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs

4
EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs

@ -164,14 +164,14 @@ namespace EasyBL.WEBAPP.SYS
LoginTime = DateTime.Now
};
var iExpireTime = 240;
var sExpireTime = Common.GetSystemSetting(db, oUser.OrgID, @"SEexpireTime");
var sExpireTime = Common.GetSystemSetting(db, oUser.OrgID, @"ExpireTime");
if (!string.IsNullOrEmpty(sExpireTime))
{
iExpireTime = int.Parse(sExpireTime);
}
else
{
iExpireTime = int.Parse(Common.GetAppSettings(@"SEexpireTime"));
iExpireTime = int.Parse(Common.GetAppSettings(@"ExpireTime"));
}
ticket.ExpireTime = DateTime.Now.AddMinutes(iExpireTime); //30天過期
ticket.IsVerify = @"Y";

Loading…
Cancel
Save