|
|
@ -163,17 +163,14 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
// LoginIp = i_crm.ClientIP,
|
|
|
|
LoginTime = DateTime.Now |
|
|
|
}; |
|
|
|
var iExpireTime = 240; |
|
|
|
var iExpireTime = 720; // 30 Days = 720 hrs
|
|
|
|
var sExpireTime = Common.GetSystemSetting(db, oUser.OrgID, @"SEexpireTime"); |
|
|
|
if (!string.IsNullOrEmpty(sExpireTime)) |
|
|
|
{ |
|
|
|
iExpireTime = int.Parse(sExpireTime); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
iExpireTime = int.Parse(Common.GetAppSettings(@"SEexpireTime")); |
|
|
|
} |
|
|
|
ticket.ExpireTime = DateTime.Now.AddMinutes(iExpireTime); //30天過期
|
|
|
|
ticket.ExpireTime = DateTime.Now.AddHours(iExpireTime); //30天過期
|
|
|
|
|
|
|
|
ticket.IsVerify = @"Y"; |
|
|
|
var oTicket = db.Queryable<OTB_SYS_TicketAuth>().Single(x => x.OrgID == oUser.OrgID && x.UserID == oUser.Account); |
|
|
|
if (oTicket != null) |
|
|
|