From a042c7ea67d6a923f745acad931a92534568513b Mon Sep 17 00:00:00 2001 From: 18300102974 Date: Fri, 10 Mar 2023 17:11:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=8C=84api=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=90=8D=E7=A8=B1=E5=92=8C=E5=9C=96=E7=89=87=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs b/EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs index 96d25a4..fcca48c 100644 --- a/EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs +++ b/EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs @@ -185,6 +185,15 @@ namespace EasyBL.WEBAPP.SYS ticket.CreateTime = DateTime.Now; db.Insertable(ticket).ExecuteCommand(); } + if (!string.IsNullOrEmpty(oUser.MemberPicture)) + { + var sFilePath = db.Queryable() + .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 { @@ -207,6 +216,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); } while (false); } catch (Exception ex)