From ee46d1e941393cfadb1e11d01eff255af33a0d66 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 3 Aug 2021 02:32:59 +0800 Subject: [PATCH] modify --- HttpServer/Route/Node.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 561a8aac..96ffa034 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -128,6 +128,15 @@ class Node extends HttpService $this->callback = $manager->callerMiddlewares( $this->handler[0], $this->handler[1], $this->aopHandler($this->getAop()) ); + + if ($this->path == '/goods/detail'){ + [$controller, $action] = $this->handler; + + $aspect = Snowflake::getDi()->getMethodAttribute($controller::class, $action); + + var_dump($aspect); + } + } return $this; }