mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-06-03 23:45:23 +00:00
优化精简路径转换返回
This commit is contained in:
parent
4c7fd2cf3d
commit
1e428a04b7
@ -694,11 +694,11 @@ class AutoReseed
|
|||||||
case 3: // 替换
|
case 3: // 替换
|
||||||
foreach ($pathArray as $key => $val) {
|
foreach ($pathArray as $key => $val) {
|
||||||
if (strpos($path, $key)===0) {
|
if (strpos($path, $key)===0) {
|
||||||
return $val . substr($path, strlen($key));
|
return $val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default: // 不变
|
||||||
return $path;
|
return $path;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user