|
@ -182,15 +182,15 @@ namespace EasyBL.WEBAPP.SYS |
|
|
ticket.CreateTime = DateTime.Now; |
|
|
ticket.CreateTime = DateTime.Now; |
|
|
db.Insertable(ticket).ExecuteCommand(); |
|
|
db.Insertable(ticket).ExecuteCommand(); |
|
|
} |
|
|
} |
|
|
if (!string.IsNullOrEmpty(oUser.MemberPicture)) |
|
|
|
|
|
{ |
|
|
|
|
|
var sFilePath = db.Queryable<OTB_SYS_Files>() |
|
|
|
|
|
.Where(x => x.ParentID == oUser.MemberPicture) |
|
|
|
|
|
.Single(); |
|
|
|
|
|
string requestUrl = Common.ConfigGetValue("", "ida:RedirectUri"); |
|
|
|
|
|
oUser.MemberPicture = requestUrl + "/" + sFilePath.FilePath.Replace("\\", "/"); |
|
|
|
|
|
|
|
|
//if (!string.IsNullOrEmpty(oUser.MemberPicture))
|
|
|
|
|
|
//{
|
|
|
|
|
|
// var sFilePath = db.Queryable<OTB_SYS_Files>()
|
|
|
|
|
|
// .Where(x => x.ParentID == oUser.MemberPicture)
|
|
|
|
|
|
// .Single();
|
|
|
|
|
|
// string requestUrl = Common.ConfigGetValue("", "ida:RedirectUri");
|
|
|
|
|
|
// oUser.MemberPicture = requestUrl + "/" + sFilePath.FilePath.Replace("\\", "/");
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//}
|
|
|
//記錄log日誌
|
|
|
//記錄log日誌
|
|
|
db.Insertable(new OTB_SYS_LoginLog |
|
|
db.Insertable(new OTB_SYS_LoginLog |
|
|
{ |
|
|
{ |
|
@ -213,8 +213,8 @@ namespace EasyBL.WEBAPP.SYS |
|
|
var strtoken = string.Format(@"orgid:{0},userid:{1},token:{2}", ticket.OrgID, ticket.UserID, ticket.Token); |
|
|
var strtoken = string.Format(@"orgid:{0},userid:{1},token:{2}", ticket.OrgID, ticket.UserID, ticket.Token); |
|
|
srm = new SuccessResponseMessage(null, null); |
|
|
srm = new SuccessResponseMessage(null, null); |
|
|
srm.DATA.Add("authtoken", SecurityUtil.Encrypt(strtoken)); |
|
|
srm.DATA.Add("authtoken", SecurityUtil.Encrypt(strtoken)); |
|
|
srm.DATA.Add("memberpicture", oUser.MemberPicture); |
|
|
|
|
|
srm.DATA.Add("memberlastname", oUser.LastName); |
|
|
|
|
|
|
|
|
//srm.DATA.Add("memberpicture", oUser.MemberPicture);
|
|
|
|
|
|
//srm.DATA.Add("memberlastname", oUser.LastName);
|
|
|
} while (false); |
|
|
} while (false); |
|
|
} |
|
|
} |
|
|
catch (Exception ex) |
|
|
catch (Exception ex) |
|
|