From bcee7de49d6f357f3e6453e9d0c39c8d631bb045 Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Mon, 21 Mar 2022 22:22:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D99api=E9=87=87=E9=9B=86?= =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E5=95=86=E5=93=81=E6=97=A0=E6=B3=95=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E4=BF=9D=E5=AD=98=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/crmeb/services/CopyProductService.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/crmeb/crmeb/services/CopyProductService.php b/crmeb/crmeb/services/CopyProductService.php index e2f2a7ff0..98d0e1d0e 100644 --- a/crmeb/crmeb/services/CopyProductService.php +++ b/crmeb/crmeb/services/CopyProductService.php @@ -337,6 +337,19 @@ class CopyProductService $result['slider_image'] = $info['images'] ?? []; $result['description'] = $info['desc'] ?? ''; $result['description_images'] = $info['descImgs'] ?? []; + $result['description_images'] = array_map(function ($item) { + if (strstr($item, 'http') === false) { + $item = 'http:' . $item; + } + return $item; + }, $result['description_images']); + if (strstr($result['description'], '