From 43049a244b9e2e7ac9516b07cf36c965533bdb03 Mon Sep 17 00:00:00 2001 From: pwf0112 Date: Mon, 18 Jan 2016 10:05:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=BA=E5=B0=91=20return?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/controller/Rest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/controller/Rest.php b/library/think/controller/Rest.php index 61c04eed..33a07a19 100644 --- a/library/think/controller/Rest.php +++ b/library/think/controller/Rest.php @@ -75,7 +75,7 @@ abstract class Rest $fun = $method . '_' . $this->_method; } if (isset($fun)) { - $this->$fun(); + return $this->$fun(); } else { // 抛出异常 throw new \Exception('error action :' . ACTION_NAME);