浏览代码

Merge branch 'liuzj-weixin-tishen-dev' into test

liuzejian 1 年之前
父节点
当前提交
70411c9c10
共有 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) {
         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);
         }
     }
 }