慕容的工作随笔

慕容的工作随笔

记录学习和工作

thinkphp5.1 路由 SERV:invalid request

设置过路由的路径,原路径无法使用,会提示SERV:invalid request

由think\route\dispatch\Url中的hasDefinedRoute方法决定

if ($this->rule->getRouter()->getName($name, $host, $method) || $this->rule->getRouter()->getName($name2, $host, $method)) {
    return true;
}

评论 (0)

还没有评论,来做第一个吧。

发表评论

提交后需管理员审核通过后显示