在BaseController下创建一个__call 方法 (这不是thinkphp自带方法,是PHP的魔术方法)
public function __call($name, $arguments)
{
return show(config('status.error'),"{$name}方法不存在");
}
在BaseController下创建一个__call 方法 (这不是thinkphp自带方法,是PHP的魔术方法)
public function __call($name, $arguments)
{
return show(config('status.error'),"{$name}方法不存在");
}