From f2ddc6c76791cd306fc66863ca94eed75510f588 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期二, 02 九月 2025 10:03:37 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.UserServer.Application/EnterpriseWallets/Commands/AlipayFundExpandindirectCommandHandler.cs | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/FlexJobApi.UserServer.Application/EnterpriseWallets/Commands/AlipayFundExpandindirectCommandHandler.cs b/FlexJobApi.UserServer.Application/EnterpriseWallets/Commands/AlipayFundExpandindirectCommandHandler.cs index b5f099a..2b719b0 100644 --- a/FlexJobApi.UserServer.Application/EnterpriseWallets/Commands/AlipayFundExpandindirectCommandHandler.cs +++ b/FlexJobApi.UserServer.Application/EnterpriseWallets/Commands/AlipayFundExpandindirectCommandHandler.cs @@ -7,6 +7,7 @@ using Mapster; using MediatR; using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.Options; using System; using System.Collections.Generic; using System.Linq; @@ -19,6 +20,7 @@ /// 鏀粯瀹濊祫閲戜簩绾у晢鎴稫YB浠h繘浠� /// </summary> public class AlipayFundExpandindirectCommandHandler( + IOptions<AlipayOptions> options, AlipayUtils alipayUtils, IHttpRemoteService httpRemoteService, IRepository<AlipayFundExpandindirectOrder> rep @@ -27,6 +29,7 @@ IRequestHandler<AlipayFundExpandindirectOrderCancelCommand, Guid>, IRequestHandler<AlipayFundExpandindirectCreateNotifyCommand, Guid> { + private readonly IOptions<AlipayOptions> options = options; private readonly AlipayUtils alipayUtils = alipayUtils; private readonly IHttpRemoteService httpRemoteService = httpRemoteService; private readonly IRepository<AlipayFundExpandindirectOrder> rep = rep; @@ -75,7 +78,7 @@ await rep.InsertNowAsync(entity); } var model = entity.Adapt<AlipayFundExpandindirectCreateModel>(); - var result = alipayUtils.FundExpandindirectCreate(model); + var result = alipayUtils.FundExpandindirectCreate(model, $"{options.Value.NotifyUrl}/api/user/enterpriseWallet/alipayFundExpandindirectCreateNotify"); if (result.IsError) { entity.RiskReviewRemark = result.Msg; -- Gitblit v1.9.1