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