mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-06-11 11:18:56 +00:00
优化精简路径转换返回
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user