mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进操作获取
This commit is contained in:
@@ -1466,11 +1466,12 @@ class Request
|
||||
*/
|
||||
public function action($action = null)
|
||||
{
|
||||
if (!is_null($action)) {
|
||||
if (!is_null($action) && !is_bool($action)) {
|
||||
$this->action = $action;
|
||||
return $this;
|
||||
} else {
|
||||
return $this->action ?: '';
|
||||
$name = $this->action ?: '';
|
||||
return true === $action ? $name : strtolower($name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user