mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-05 19:41:43 +08:00
modified 优化接口性能
This commit is contained in:
parent
5ea9234184
commit
cdb21ae3a6
@ -26,8 +26,9 @@ class ApiAuth {
|
||||
|
||||
$pathParam = [];
|
||||
$pathArr = explode('/', $request->pathinfo());
|
||||
for ($index = 0; $index < count($pathArr); $index += 2) {
|
||||
if (isset($pathArr[$index + 1])) {
|
||||
$pathArrLen = count($pathArr);
|
||||
for ($index = 0; $index < $pathArrLen; $index += 2) {
|
||||
if ($index + 1 < $pathArrLen) {
|
||||
$pathParam[$pathArr[$index]] = $pathArr[$index + 1];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user