Browse Source

测试多个图片下载

liuzejian 1 year ago
parent
commit
f0660ff79d

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

@@ -107,7 +107,7 @@ class VideoSeriesWechatCheckController extends CatchController
 
 
     public function test(Request $request) {
     public function test(Request $request) {
         foreach (['1228789.jpg', 'images.png'] as $i) {
         foreach (['1228789.jpg', 'images.png'] as $i) {
-            Response::streamDownload(function () use($i){
+            return Response::streamDownload(function () use($i){
                 echo file_get_contents(app_path($i));
                 echo file_get_contents(app_path($i));
             });
             });
         }
         }