瀏覽代碼

测试多个图片下载

liuzejian 1 年之前
父節點
當前提交
a790b0f5dd
共有 4 個文件被更改,包括 9 次插入0 次删除
  1. 二進制
      app/1228789.jpg
  2. 二進制
      app/images.png
  3. 8 0
      modules/Video/Http/Controllers/VideoSeriesWechatCheckController.php
  4. 1 0
      modules/Video/routes/route.php

二進制
app/1228789.jpg


二進制
app/images.png


+ 8 - 0
modules/Video/Http/Controllers/VideoSeriesWechatCheckController.php

@@ -100,6 +100,14 @@ class VideoSeriesWechatCheckController extends CatchController
         if($info) {
             $evidence_material_id_lists = \json_decode($info->evidence_material_id_list, true);
             $accessToken = WechatMiniprogramService::getDuanjuCheckAccessToken($info->appid);
+
+        }
+    }
+
+    public function test(Request $request) {
+        foreach (['1228789.jpg', 'images.png'] as $i) {
+            $res = file_get_contents(app_path($i));
+            echo $res;
         }
     }
 }

+ 1 - 0
modules/Video/routes/route.php

@@ -27,6 +27,7 @@ Route::prefix('videoStock')->group(function () {
         Route::prefix('videoSeries')->group(function(){
             Route::post('syncWechat', [VideoSeriesWechatCheckController::class, 'syncWechat']);
             Route::post('medialink', [VideoSeriesWechatCheckController::class, 'medialink']);
+            Route::get('test', [VideoSeriesWechatCheckController::class, 'test'])->withoutMiddleware(config('catch.route.middlewares'));
         });
     });