Browse Source

去掉查詢圖片

Dev
18300102974 2 years ago
parent
commit
c6285928a6
  1. 20
      EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs

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

@ -182,15 +182,15 @@ namespace EasyBL.WEBAPP.SYS
ticket.CreateTime = DateTime.Now;
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日誌
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);
srm = new SuccessResponseMessage(null, null);
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);
}
catch (Exception ex)

Loading…
Cancel
Save