From bbf4d5832fb5bc60e47c7e367175b6071d4c39a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=BF=98=E5=88=9D=E5=BF=83?= Date: Fri, 28 Aug 2020 16:52:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=85=88=E6=89=A7=E8=A1=8C=E5=B8=A6?= =?UTF-8?q?=E6=9C=89=E5=87=BD=E6=95=B0=E5=90=8D=E5=BC=80=E5=A4=B4=E7=9A=84?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E6=96=B9=E6=B3=95=E5=86=8D=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E9=80=9A=E7=94=A8=E5=9B=9E=E8=B0=83=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/zoujingli/think-library/src/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/zoujingli/think-library/src/Controller.php b/vendor/zoujingli/think-library/src/Controller.php index c1e7cdf0b..c9390644f 100644 --- a/vendor/zoujingli/think-library/src/Controller.php +++ b/vendor/zoujingli/think-library/src/Controller.php @@ -177,7 +177,7 @@ abstract class Controller extends \stdClass public function callback($name, &$one = [], &$two = []) { if (is_callable($name)) return call_user_func($name, $this, $one, $two); - foreach ([$name, "_{$this->app->request->action()}{$name}"] as $method) { + foreach (["_{$this->app->request->action()}{$name}", $name] as $method) { if (method_exists($this, $method) && false === $this->$method($one, $two)) { return false; }