berlin-tzen 2 years ago
parent
commit
1861cc99ec
  1. 14
      EuroTran/EasyBL.WEBAPP/ShowEasy/MembersService.cs

14
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<SETB_CMS_Member>()
var saUser = db.Queryable<SETB_CMS_Member>()
//搜尋條件
.Where(x => x.OrgID == OrgID && x.Account == Account)
.Single();
if (!string.IsNullOrEmpty(saUser.MemberPicture)) {
var sFilePath = db.Queryable<OTB_SYS_Files>()
.Where(x => x.ParentID == saCountry.MemberID)
.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);
}

Loading…
Cancel
Save