This commit is contained in:
Xy
2021-04-23 10:40:07 +00:00
parent c2ed43238b
commit bd18dd95b7
9 changed files with 32 additions and 32 deletions

View File

@@ -15,9 +15,9 @@ namespace Dilon.Core
private readonly IRepository<SysEmp> _sysEmpRep; // 员工表
private readonly IHttpContextAccessor _httpContextAccessor;
public long UserId
public string UserId
{
get => long.Parse(_httpContextAccessor.HttpContext.User.FindFirst(ClaimConst.CLAINM_USERID)?.Value);
get => _httpContextAccessor.HttpContext.User.FindFirst(ClaimConst.CLAINM_USERID)?.Value;
}
public string Account