From 467c8805f59a19094ec522a06c4662c6e4e0f7ec Mon Sep 17 00:00:00 2001 From: Janie <109517022+Janie06@users.noreply.github.com> Date: Wed, 8 Feb 2023 09:41:04 +0800 Subject: [PATCH] =?UTF-8?q?[WHAT]=20GetMemberInfo=20[WHY]=20=E9=96=8B?= =?UTF-8?q?=E7=99=BC=20ShowEasy=20=E5=BE=8C=E8=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 修改查詢會員頭像參數 --- .../EasyBL.WEBAPP/ShowEasy/MembersService.cs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/EuroTran/EasyBL.WEBAPP/ShowEasy/MembersService.cs b/EuroTran/EasyBL.WEBAPP/ShowEasy/MembersService.cs index 5b63309..64e37b5 100644 --- a/EuroTran/EasyBL.WEBAPP/ShowEasy/MembersService.cs +++ b/EuroTran/EasyBL.WEBAPP/ShowEasy/MembersService.cs @@ -153,21 +153,25 @@ namespace EasyBL.WEBAPP.SYS do { string requestUrl = Common.ConfigGetValue("", "ida:RedirectUri"); - var saCountry = db.Queryable() + var saUser = db.Queryable() //搜尋條件 .Where(x => x.OrgID == OrgID && x.Account == Account) .Single(); - var sFilePath = db.Queryable() - .Where(x => x.ParentID == saCountry.MemberID) + + if (!string.IsNullOrEmpty(saUser.MemberPicture)) { + + var sFilePath = db.Queryable() + .Where(x => x.ParentID == saUser.MemberPicture) .Single(); - saCountry.MemberPicture = requestUrl + "/" + sFilePath.FilePath.Replace("\\", "/"); - var iRel = db.Insertable(saCountry).ExecuteCommand(); + saUser.MemberPicture = requestUrl + "/" + sFilePath.FilePath.Replace("\\", "/"); + + } //返回user信息 srm = new SuccessResponseMessage(null, null); - srm.DATA.Add(BLWording.REL, iRel); + srm.DATA.Add(BLWording.REL, saUser); } while (false); }