|
...
|
...
|
@@ -61,11 +61,6 @@ class FileController |
|
|
|
*/
|
|
|
|
public function index($hash = '')
|
|
|
|
{
|
|
|
|
// 检查是否有修改日期或ETag头部
|
|
|
|
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) || isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
|
|
|
|
header("HTTP/1.1 304 Not Modified");
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
$fileModel = new File();
|
|
|
|
$info = $fileModel->read(['hash' => $hash]);
|
|
|
|
if ($info === false) {
|
...
|
...
|
|