From a6325d1a9bd8d5a9b9c6424b3cb6d0c898309d30 Mon Sep 17 00:00:00 2001 From: lingling <kety1122@163.com> Date: 星期一, 17 三月 2025 14:27:16 +0800 Subject: [PATCH] 添加Map --- LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs | 29 ++++++++++++++++++++++++----- 1 files changed, 24 insertions(+), 5 deletions(-) diff --git a/LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs b/LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs index 9cce5da..804b358 100644 --- a/LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs +++ b/LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs @@ -1,4 +1,6 @@ -锘縰sing LifePayment.Application.Contracts; +锘縰sing LifePayment.Application; +using LifePayment.Application.Contracts; +using LifePayment.Domain.Shared; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; @@ -15,25 +17,37 @@ public class AccountController : AbpController { private readonly IAccountService _accountService; - + private readonly OssSettings ossSettings; private readonly IWebClientInfoProvider _webClientInfoProvider; + public AccountController( IAccountService accountService, - + IOptionsMonitor<OssSettings> optionsMonitor, IWebClientInfoProvider webClientInfoProvider ) { _accountService = accountService; - + this.ossSettings = optionsMonitor.CurrentValue; _webClientInfoProvider = webClientInfoProvider; } #region life pay + /// <summary> + /// 鑾峰彇鐢熸椿缂磋垂鐢ㄦ埛韬唤浼氳瘽淇℃伅 + /// </summary> + /// <param name="code">鐢ㄦ埛鐧诲綍鍑瘉</param> + /// <returns></returns> + [HttpGet] + [AllowAnonymous] + public async Task<WxMiniAppIndentityInfo> GetLifePayWxIndentity(string code) + { + return await _accountService.GetLifePayWxIndentity(code); + } /// <summary> /// life pay鎵嬫満楠岃瘉鐮佺櫥褰� @@ -49,7 +63,12 @@ return await _accountService.LifePayPhoneMesssageCodeLogin(input); } - + [HttpPost] + public OssSTSReponse GetOssSTS() + { + OssSTSHelper ossSTSHelper = new OssSTSHelper(this.ossSettings); + return ossSTSHelper.GetOssSTS(); + } #endregion -- Gitblit v1.9.1