From b9e2c8345c5c83581a7a57bcda316928b171f322 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 16 四月 2025 17:18:34 +0800
Subject: [PATCH] fix: 修改微信支付回调通知

---
 LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs |   51 ++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 46 insertions(+), 5 deletions(-)

diff --git a/LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs b/LifePayment/LifePayment.HttpApi/LifePay/AccountController.cs
index 9cce5da..c61fc5b 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;
@@ -7,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
 {
@@ -15,25 +19,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鎵嬫満楠岃瘉鐮佺櫥褰�
@@ -44,12 +60,37 @@
         [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]
+        public OssSTSReponse GetOssSTS()
+        {
+            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