Просмотр исходного кода

:fire: download/{type1}/{type2}

visuddhinanda 1 год назад
Родитель
Сommit
21cce1d5bc
1 измененных файлов с 0 добавлено и 7 удалено
  1. 0 7
      api-v8/routes/api.php

+ 0 - 7
api-v8/routes/api.php

@@ -278,13 +278,6 @@ Route::group(['prefix' => 'v2'], function () {
     Route::apiResource('site-info', SiteInfoController::class);
     Route::apiResource('pali-book-category', PaliBookCategoryController::class);
 
-    Route::get('download/{type1}/{type2}/{uuid}/{filename}', function ($type1, $type2, $uuid, $filename) {
-        header("Content-Type: {$type1}/{$type1}");
-        header("Content-Disposition: attachment; filename=\"{$filename}\"");
-        $content = Cache::get("download/tmp/{$uuid}");
-        //TODO 换成redis 集群
-        file_put_contents("php://output", $content);
-    });
 
     Route::get('guide/{lang}/{file}', function ($lang, $file) {
         $filename = public_path("app/users_guide/{$lang}/{$file}.md");