From 937bb86a0a3f2878c8fd06f7ce08427b7d7f20fa Mon Sep 17 00:00:00 2001 From: Death-Satan <2771717608@qq.com> Date: Sun, 21 Jan 2024 15:20:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=87=8D=E5=A4=8D=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E6=94=BE=E5=9C=A8=E6=96=B9=E6=B3=95=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E5=89=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mine-core/src/Aspect/ResubmitAspect.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mine-core/src/Aspect/ResubmitAspect.php b/src/mine-core/src/Aspect/ResubmitAspect.php index f72d707a..dd040f0c 100644 --- a/src/mine-core/src/Aspect/ResubmitAspect.php +++ b/src/mine-core/src/Aspect/ResubmitAspect.php @@ -53,8 +53,6 @@ class ResubmitAspect extends AbstractAspect public function process(ProceedingJoinPoint $proceedingJoinPoint) { try { - $result = $proceedingJoinPoint->process(); - /* @var $resubmit Resubmit */ if (isset($proceedingJoinPoint->getAnnotationMetadata()->method[Resubmit::class])) { $resubmit = $proceedingJoinPoint->getAnnotationMetadata()->method[Resubmit::class]; @@ -78,7 +76,7 @@ public function process(ProceedingJoinPoint $proceedingJoinPoint) $lockRedis->lock($key, $resubmit->second); $lockRedis = null; - return $result; + return $proceedingJoinPoint->process(); } catch (\Throwable $e) { throw new MineException($e->getMessage(), $e->getCode()); }