| | |
| | | /// 支付宝资金二级商户KYB代进件 |
| | | /// </summary> |
| | | public class AlipayFundExpandindirectCommandHandler( |
| | | IOptions<AlipayOptions> options, |
| | | AlipayUtils alipayUtils, |
| | | IHttpRemoteService httpRemoteService, |
| | | IRepository<AlipayFundExpandindirectOrder> rep |
| | |
| | | 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; |
| | |
| | | secondaryPartnerInfo.Name = entity.Name; |
| | | secondaryPartnerInfo.IdentityType = entity.IdentityType; |
| | | model.SecondaryPartnerInfo = secondaryPartnerInfo; |
| | | var result = alipayUtils.FundExpandindirectCreate(model, $"{options.Value.NotifyUrl}/api/user/enterpriseWallet/alipayFundExpandindirectCreateNotify"); |
| | | var result = alipayUtils.FundExpandindirectCreate(model, $"/api/user/enterpriseWallet/alipayFundExpandindirectCreateNotify"); |
| | | if (result.IsError) |
| | | { |
| | | entity.RiskReviewRemark = result.Msg; |
| | |
| | | { |
| | | ProductCode = request.ProductCode, |
| | | BizScene = request.BizScene, |
| | | ImageType = Path.GetExtension(request.File.FileName), |
| | | ImageType = Path.GetExtension(request.File.FileName).Trim('.').ToLower(), |
| | | ImageContent = new Aop.Api.Util.FileItem(request.File.FileName, bytes) |
| | | }); |
| | | if (result.IsError) throw Oops.Oh(EnumErrorCodeType.s510, result.Msg); |