zhengyuxuan
2025-03-27 85de4f8a1ef46f61e57b4ec375186122c23a3212
fix:新增支付宝查询
6个文件已修改
39 ■■■■ 已修改文件
LifePayment/LifePayment.Application.Contracts/LifePay/ILifePayService.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.Application/LifePay/LifePayService.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.Domain/Ali/AliPayApi.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.Domain/Ali/IAliPayApi.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.HttpApi/LifePay/AliPayNotifyController.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.Application.Contracts/LifePay/ILifePayService.cs
@@ -1,4 +1,5 @@
using LifePayment.Domain.Shared;
using Alipay.EasySDK.Payment.Common.Models;
using LifePayment.Domain.Shared;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
@@ -271,6 +272,8 @@
    Task<string> GetBillErceiptExport(string orderNo);
    Task<AlipayTradeQueryResponse> QueryGetAlipayTrade(OrderInQuiryInput input);
    /// <summary>
    /// 设置生活缴费支付类型
    /// </summary>
LifePayment/LifePayment.Application/LifePay/LifePayService.cs
@@ -820,6 +820,15 @@
            return "";
        }
    }
    public async Task<AlipayTradeQueryResponse> QueryGetAlipayTrade(OrderInQuiryInput input)
    {
        var result = await _aliPayApi.OrderInQuiry(input);
        return result;
    }
    #endregion
    #region 操作
LifePayment/LifePayment.Domain/Ali/AliPayApi.cs
@@ -29,7 +29,7 @@
            return response;
        }
        public AlipayTradeQueryResponse OrderInQuiry(OrderInQuiryInput input)
        public async Task<AlipayTradeQueryResponse> OrderInQuiry(OrderInQuiryInput input)
        {
            AlipayTradeQueryResponse response = Factory.Payment.Common().Query(input.OutTradeNo);
            return response;
LifePayment/LifePayment.Domain/Ali/IAliPayApi.cs
@@ -10,7 +10,7 @@
    {
        Task<AlipayTradePrecreateResponse> GetAliPayQRCode(GetPayQrCodeInput input);
        AlipayTradeQueryResponse OrderInQuiry(OrderInQuiryInput input);
        Task<AlipayTradeQueryResponse> OrderInQuiry(OrderInQuiryInput input);
        Task<AlipayTradeRefundResponse> TradeRefund(AlipayTradeRefundRequest input);
    }
LifePayment/LifePayment.HttpApi/LifePay/AliPayNotifyController.cs
@@ -1,4 +1,5 @@
using LifePayment.Application.Contracts;
using Alipay.AopSdk.F2FPay.Model;
using LifePayment.Application.Contracts;
using LifePayment.Domain.Shared;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
@@ -90,6 +91,8 @@
            };
        }
#endif
        /// <summary>
LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
@@ -1,4 +1,5 @@
using LifePayment.Application.Contracts;
using Alipay.AopSdk.F2FPay.Model;
using LifePayment.Application.Contracts;
using LifePayment.Application.LifePay;
using LifePayment.Domain.Common;
using LifePayment.Domain.Shared;
@@ -441,7 +442,18 @@
            return await _lifePayOrderService.GetLifePayRechargeReceiptsPage(input);
        }
        /// <summary>
        /// 查询支付宝订单信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [HttpPost]
        [AllowAnonymous]
        public async Task<Alipay.EasySDK.Payment.Common.Models.AlipayTradeQueryResponse> QueryGetAlipayTrade(OrderInQuiryInput input)
        {
            return await _lifePayService.QueryGetAlipayTrade(input);
        }
        #endregion
        #region 操作