mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-07-16 20:23:52 +08:00
Pre Merge pull request !14 from 不忘初心/v6
This commit is contained in:
commit
d117e71795
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user