From ceb8ce456f406d4010aa83dd7da3d9e63f0e211a Mon Sep 17 00:00:00 2001 From: lingling <kety1122@163.com> Date: 星期二, 18 三月 2025 15:21:59 +0800 Subject: [PATCH] add log --- LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs b/LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs index 3f95827..5737e00 100644 --- a/LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs +++ b/LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs @@ -9,6 +9,8 @@ using Volo.Abp; using Volo.Abp.AspNetCore.Mvc; using Volo.Abp.AspNetCore.WebClientInfo; +using Volo.Abp.Identity.Application.Contracts.Account; +using Volo.Abp.IdentityModel; namespace LifePayment.HttpApi { @@ -19,6 +21,7 @@ private readonly IAccountService _accountService; private readonly OssSettings ossSettings; private readonly IWebClientInfoProvider _webClientInfoProvider; + public AccountController( @@ -68,6 +71,13 @@ OssSTSHelper ossSTSHelper = new OssSTSHelper(this.ossSettings); return ossSTSHelper.GetOssSTS(); } + + [HttpPost] + public async Task<IdentityModelTokenCacheItem> GetTokenForWeb(AccessRequestDto accessRequestDto) + { + var webClientIp = _webClientInfoProvider.ClientIpAddress; + return await _accountService.GetTokenForWeb(accessRequestDto, webClientIp); + } #endregion -- Gitblit v1.9.1