mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 00:25:35 +08:00
change comment
This commit is contained in:
@@ -114,8 +114,8 @@ class HttpUtil
|
|||||||
->withBody(HttpFactory::getInstance()->createStream(file_get_contents($path . '/' . $vp)));
|
->withBody(HttpFactory::getInstance()->createStream(file_get_contents($path . '/' . $vp)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 如果文件存在,则直接返回文件内容
|
|
||||||
} elseif (is_file($path)) {
|
} elseif (is_file($path)) {
|
||||||
|
// 如果文件存在,则直接返回文件内容
|
||||||
logger()->info('[200] ' . $uri);
|
logger()->info('[200] ' . $uri);
|
||||||
$exp = strtolower(pathinfo($path)['extension'] ?? 'unknown');
|
$exp = strtolower(pathinfo($path)['extension'] ?? 'unknown');
|
||||||
return HttpFactory::getInstance()->createResponse()
|
return HttpFactory::getInstance()->createResponse()
|
||||||
|
|||||||
Reference in New Issue
Block a user