<?php
namespace app\Controller\index;
use app\BaseController;
use think\facade\View;
class Index extends BaseController{
public function Index(){
return View::fetch('index');
}
}
// 是否启用路由
'with_route' => false,
protected function parseUrl(string $url):array
{
$depr = $this->rule->config('pathinfo_depr');
$bind = $this->rule->getRouter()->getDomainBind();
$item = explode('|',$url);
if(count($item)==3){
$url = $item[0].'.'.$item[1].'|'.$item[2];
}else{
$item = explode('|',$url);
$url = $item[0].'.'.$item[1].'|'.$item[2];
}

最佳答案
