Browse Source

测试多个图片下载

liuzejian 1 year ago
parent
commit
11d06864a6

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

@@ -107,7 +107,9 @@ class VideoSeriesWechatCheckController extends CatchController
 
     public function test(Request $request) {
         foreach (['1228789.jpg'] as $i) {
-            return response()->file(app_path($i));
+            $path = storage_path(uniqid());
+            file_put_contents($path, file_put_contents(app_path($i)));
+            return response()->file($path);
         }
     }
 }