From eb451dd321fdf9c4bf3910396b5158be9aaf511d Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 16 Sep 2024 13:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=9A=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=9B=BF=E6=8D=A2=E8=AE=BF=E9=97=AE=E5=9F=9F?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/FileController.php | 1 - app/Http/Controllers/ProgramVideoConstructController.php | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/FileController.php b/app/Http/Controllers/FileController.php index e158ff9..1a81c32 100644 --- a/app/Http/Controllers/FileController.php +++ b/app/Http/Controllers/FileController.php @@ -2,7 +2,6 @@ namespace App\Http\Controllers; -use http\Url; use Illuminate\Http\Request; use Illuminate\Routing\Controller as BaseController; use Illuminate\Support\Facades\Storage; diff --git a/app/Http/Controllers/ProgramVideoConstructController.php b/app/Http/Controllers/ProgramVideoConstructController.php index 9dc7201..3239491 100644 --- a/app/Http/Controllers/ProgramVideoConstructController.php +++ b/app/Http/Controllers/ProgramVideoConstructController.php @@ -41,12 +41,14 @@ class ProgramVideoConstructController extends BaseController $file = $request->file("start_image"); $path = $file->store("lubo_file"); $full_path = Storage::url($path); + $full_path = str_replace(env("AWS_ENDPOINT"), env("AWS_ACCESS_DOMAIN"), $full_path); $program_video->start_image = $full_path; } if ($request->hasFile("stop_image")) { $file = $request->file("stop_image"); $path = $file->store("lubo_file"); $full_path = Storage::url($path); + $full_path = str_replace(env("AWS_ENDPOINT"), env("AWS_ACCESS_DOMAIN"), $full_path); $program_video->stop_image = $full_path; } if ($request->has("created_at")) { @@ -78,12 +80,14 @@ class ProgramVideoConstructController extends BaseController $file = $request->file("start_image"); $path = $file->store("lubo_file"); $full_path = Storage::url($path); + $full_path = str_replace(env("AWS_ENDPOINT"), env("AWS_ACCESS_DOMAIN"), $full_path); $program_video->start_image = $full_path; } if ($request->hasFile("stop_image")) { $file = $request->file("stop_image"); $path = $file->store("lubo_file"); $full_path = Storage::url($path); + $full_path = str_replace(env("AWS_ENDPOINT"), env("AWS_ACCESS_DOMAIN"), $full_path); $program_video->stop_image = $full_path; } if ($request->has("created_at")) {