优化精简路径转换返回

This commit is contained in:
iyuu.cn 2020-03-25 19:20:08 +08:00
parent 4c7fd2cf3d
commit 1e428a04b7

View File

@ -694,11 +694,11 @@ class AutoReseed
case 3: // 替换
foreach ($pathArray as $key => $val) {
if (strpos($path, $key)===0) {
return $val . substr($path, strlen($key));
return $val;
}
}
break;
default:
default: // 不变
return $path;
break;
}