From fc5fc5bcb84ad464638008768932e47ad36c36af Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期一, 31 三月 2025 18:22:53 +0800 Subject: [PATCH] fix:提交 --- LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs | 25 ++++++++++++++++++++++++- 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs b/LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs index 3f95827..c61fc5b 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( @@ -57,9 +60,22 @@ [HttpPost] [AllowAnonymous] [ChannelFilter] - public async Task<Guid> LifePayPhoneMesssageCodeLogin(LifePayPhoneMesssageCodeLoginInput input) + public async Task<LifePayPhoneMesssageCodeLoginOutput> LifePayPhoneMesssageCodeLogin(LifePayPhoneMesssageCodeLoginInput input) { return await _accountService.LifePayPhoneMesssageCodeLogin(input); + } + + /// <summary> + /// 鏍规嵁鐢ㄦ埛ID鑾峰彇鐢ㄦ埛鏄惁涓哄悗鍙扮鐞嗗憳 + /// </summary> + /// <param name="input"></param> + /// <returns></returns> + [HttpPost] + [AllowAnonymous] + [ChannelFilter] + public async Task<LifePayPhoneMesssageCodeLoginOutput> LifePayUserMesssageByIduser(LifePayUserMesssageByIduserInput input) + { + return await _accountService.LifePayUserMesssageByIduser(input.Id); } [HttpPost] @@ -68,6 +84,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