|
|
@@ -228,6 +228,22 @@ namespace Learun.Application.Web.Controllers |
|
|
|
photo = "/" + photo.Substring(photo.IndexOf("Content")); |
|
|
|
} |
|
|
|
result.Photo = photo; |
|
|
|
if(!result.mobile.IsEmpty()) |
|
|
|
{ |
|
|
|
result.mobile = $"{result.mobile.Substring(0, 3)}****{result.mobile.Substring(7, 4)}"; |
|
|
|
} |
|
|
|
if(!result.IdentityCardNo.IsEmpty()) |
|
|
|
{ |
|
|
|
result.IdentityCardNo = $"{result.IdentityCardNo.Substring(0, 2)}************{result.IdentityCardNo.Substring(14, 4)}"; |
|
|
|
} |
|
|
|
if (!result.FatherPhone.IsEmpty()) |
|
|
|
{ |
|
|
|
result.FatherPhone = $"{result.FatherPhone.Substring(0, 3)}****{result.FatherPhone.Substring(7, 4)}"; |
|
|
|
} |
|
|
|
if (!result.MatherPhone.IsEmpty()) |
|
|
|
{ |
|
|
|
result.MatherPhone = $"{result.MatherPhone.Substring(0, 3)}****{result.MatherPhone.Substring(7, 4)}"; |
|
|
|
} |
|
|
|
} |
|
|
|
return Success(new { basicInfo = data, userInfo = result }); |
|
|
|
|
|
|
@@ -237,6 +253,21 @@ namespace Learun.Application.Web.Controllers |
|
|
|
{ |
|
|
|
var data = LoginUserInfo.Get(); |
|
|
|
var result = empInfoIBLL.GetEmpInfoEntityByEmpNo(data.account); |
|
|
|
if(result!=null) |
|
|
|
{ |
|
|
|
if (!result.mobile.IsEmpty()) |
|
|
|
{ |
|
|
|
result.mobile = $"{result.mobile.Substring(0, 3)}****{result.mobile.Substring(7, 4)}"; |
|
|
|
} |
|
|
|
if (!result.IdentityCardNo.IsEmpty()) |
|
|
|
{ |
|
|
|
result.IdentityCardNo = $"{result.IdentityCardNo.Substring(0, 2)}************{result.IdentityCardNo.Substring(14, 4)}"; |
|
|
|
} |
|
|
|
if (!result.PhoneOfLinkman.IsEmpty()) |
|
|
|
{ |
|
|
|
result.PhoneOfLinkman = $"{result.PhoneOfLinkman.Substring(0, 3)}****{result.PhoneOfLinkman.Substring(7, 4)}"; |
|
|
|
} |
|
|
|
} |
|
|
|
return Success(new { basecInfo = data, userInfo = result }); |
|
|
|
} |
|
|
|
|
|
|
|