| | |
| | | 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; |
| | |
| | | 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; |
| | | |
| | | } |
| | |
| | | return await _accountService.LifePayPhoneMesssageCodeLogin(input); |
| | | } |
| | | |
| | | |
| | | [HttpPost] |
| | | public OssSTSReponse GetOssSTS() |
| | | { |
| | | OssSTSHelper ossSTSHelper = new OssSTSHelper(this.ossSettings); |
| | | return ossSTSHelper.GetOssSTS(); |
| | | } |
| | | #endregion |
| | | |
| | | |