lvzb 1 year ago
parent
commit
d26ebbbfdf
  1. 3
      src/Modules/BaseService/BaseService.Application/UserManagement/UserAppService.cs
  2. 5
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/IdentityServer/IdentityServerDataSeedContributor.cs
  3. BIN
      vue/node_modules.rar

3
src/Modules/BaseService/BaseService.Application/UserManagement/UserAppService.cs

@ -86,7 +86,8 @@ namespace BaseService.Systems.UserManagement
[AllowAnonymous]
public async Task<IdentityUserDto> GetCurrentUserAsync()
{
var id = CurrentUser.GetId();
Guid id;
id = CurrentUser.GetId();
var currentUser = await UserManager.GetByIdAsync(id);
var dto = ObjectMapper.Map<IdentityUser, IdentityUserDto>(currentUser);

5
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/IdentityServer/IdentityServerDataSeedContributor.cs

@ -13,6 +13,7 @@ using Volo.Abp.IdentityServer.Clients;
using Volo.Abp.IdentityServer.IdentityResources;
using Volo.Abp.MultiTenancy;
using Volo.Abp.PermissionManagement;
using Volo.Abp.Security.Claims;
using Volo.Abp.Uow;
using ApiResource = Volo.Abp.IdentityServer.ApiResources.ApiResource;
using ApiScope = Volo.Abp.IdentityServer.ApiScopes.ApiScope;
@ -77,7 +78,9 @@ namespace WY.NewJit.IdentityServer
"name",
"phone_number",
"phone_number_verified",
"role"
"role",
AbpClaimTypes.UserId,
AbpClaimTypes.UserName
};
await CreateApiResourceAsync("NewJit", commonApiUserClaims);

BIN
vue/node_modules.rar

Binary file not shown.
Loading…
Cancel
Save