lingling
2025-03-17 995b00fc03d611c8a7f96a48bafe4fb66b62ef7b
LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs
@@ -1,4 +1,6 @@
using LifePayment.Application.Contracts;
using 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,36 @@
    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 +62,12 @@
            return await _accountService.LifePayPhoneMesssageCodeLogin(input);
        }
        [HttpPost]
        public OssSTSReponse GetOssSTS()
        {
            OssSTSHelper ossSTSHelper = new OssSTSHelper(this.ossSettings);
            return ossSTSHelper.GetOssSTS();
        }
        #endregion