作者 刘锟

update

... ... @@ -433,8 +433,16 @@ class ProjectUpdate extends Command
//获取地址路由
protected function get_url_route($url)
{
$arr = explode('/', $url);
return $arr[count($arr) - 2];
$arr = parse_url($url);
$path = $arr['path'];
if (strpos($path, '.') !== false) {
$path = substr($path, 0, strpos($path, '.'));
}
$path_arr = explode('/', $path);
return end($path_arr) ? end($path_arr) : $path_arr[count($path_arr) - 2];
}
//多级分类入库
... ...