From 1605af1ced748313e99f38e5eb6888768fbc7d54 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期三, 11 六月 2025 14:46:43 +0800 Subject: [PATCH] fix:支付回调和供应商回调的并发问题 --- LifePayment/LifePayment.HttpApi/LifePay/ACOOLYNotifyController.cs | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/LifePayment/LifePayment.HttpApi/LifePay/ACOOLYNotifyController.cs b/LifePayment/LifePayment.HttpApi/LifePay/ACOOLYNotifyController.cs index 02e1a4b..cae6846 100644 --- a/LifePayment/LifePayment.HttpApi/LifePay/ACOOLYNotifyController.cs +++ b/LifePayment/LifePayment.HttpApi/LifePay/ACOOLYNotifyController.cs @@ -10,6 +10,7 @@ using System.Threading.Tasks; using Volo.Abp; using Volo.Abp.AspNetCore.Mvc; +using Volo.Abp.DistributedLocking; using Volo.Abp.Uow; namespace LifePayment.HttpApi @@ -20,14 +21,17 @@ public class ACOOLYNotifyController : AbpController { private readonly ILifePayService _lifePayService; + private readonly IAbpDistributedLock distributedLock; private readonly ILogger<ACOOLYNotifyController> _logger; public ACOOLYNotifyController( ILogger<ACOOLYNotifyController> logger, - ILifePayService lifePayService) + ILifePayService lifePayService, + IAbpDistributedLock distributedLock) { _logger = logger; _lifePayService = lifePayService; + this.distributedLock = distributedLock; } /// <summary> -- Gitblit v1.9.1