From fba98db7cb03d9cbd190e76bc56288a99038be73 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Mon, 18 Nov 2024 23:25:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=BB=E5=8A=A1=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=90=8E=E5=9B=BE=E7=89=87=E6=B6=88=E5=A4=B1?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/ProjectTaskContent.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Models/ProjectTaskContent.php b/app/Models/ProjectTaskContent.php index 125e54474..a49d64263 100644 --- a/app/Models/ProjectTaskContent.php +++ b/app/Models/ProjectTaskContent.php @@ -84,8 +84,9 @@ class ProjectTaskContent extends AbstractModel $content = str_replace($matchs[0][$key], ']+)(["\'][^>]*?>)/i'; + $replacement = '$1{{RemoteURL}}$3$4'; + $content = preg_replace($pattern, $replacement, $content); // $filePath = $path . md5($content); $publicPath = public_path($filePath);