mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-06-01 06:25:22 +00:00
没用$path == $key判断,是为了提高兼容性
This commit is contained in:
parent
d015cd56a6
commit
44c0bcdeb4
@ -686,14 +686,14 @@ class AutoReseed
|
||||
break;
|
||||
case 2: // 加
|
||||
foreach ($pathArray as $key => $val) {
|
||||
if (strpos($path, $key)===0) {
|
||||
if (strpos($path, $key)===0) { // 没用$path == $key判断,是为了提高兼容性
|
||||
return $val . $path;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 3: // 替换
|
||||
foreach ($pathArray as $key => $val) {
|
||||
if (strpos($path, $key)===0) {
|
||||
if (strpos($path, $key)===0) { // 没用$path == $key判断,是为了提高兼容性
|
||||
return $val;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user