liuzejian 1 год назад
Родитель
Сommit
11d06864a6
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      modules/Video/Http/Controllers/VideoSeriesWechatCheckController.php

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

@@ -107,7 +107,9 @@ class VideoSeriesWechatCheckController extends CatchController
 
 
     public function test(Request $request) {
     public function test(Request $request) {
         foreach (['1228789.jpg'] as $i) {
         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);
         }
         }
     }
     }
 }
 }