소스 검색

测试多个图片下载

liuzejian 1 년 전
부모
커밋
028bf14c8d
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      modules/Video/Http/Controllers/VideoSeriesWechatCheckController.php

+ 1 - 3
modules/Video/Http/Controllers/VideoSeriesWechatCheckController.php

@@ -107,9 +107,7 @@ class VideoSeriesWechatCheckController extends CatchController
 
     public function test(Request $request) {
         foreach (['1228789.jpg'] as $i) {
-            return Response::stream(function () use($i){
-                echo file_get_contents(app_path($i));
-            }, 200, ["Content-Type" => 'image/jpg',' Content-Disposition' => "attachment;filename=aaa.jpg"]);
+            return response()->file(app_path($i));
         }
     }
 }