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()); }