mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-06-01 06:25:22 +00:00
优化精简路径转换返回
This commit is contained in:
parent
4c7fd2cf3d
commit
1e428a04b7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user