mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
缺少 return
This commit is contained in:
@@ -75,7 +75,7 @@ abstract class Rest
|
|||||||
$fun = $method . '_' . $this->_method;
|
$fun = $method . '_' . $this->_method;
|
||||||
}
|
}
|
||||||
if (isset($fun)) {
|
if (isset($fun)) {
|
||||||
$this->$fun();
|
return $this->$fun();
|
||||||
} else {
|
} else {
|
||||||
// 抛出异常
|
// 抛出异常
|
||||||
throw new \Exception('error action :' . ACTION_NAME);
|
throw new \Exception('error action :' . ACTION_NAME);
|
||||||
|
|||||||
Reference in New Issue
Block a user