From b0229be95314854d20584edea63cedbb978a17ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Wed, 22 Mar 2023 16:46:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E9=9B=86=E5=95=86=E5=93=81=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/order/StoreOrderCreateServices.php | 2 +- crmeb/app/services/product/product/StoreProductServices.php | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crmeb/app/services/order/StoreOrderCreateServices.php b/crmeb/app/services/order/StoreOrderCreateServices.php index f763de543..8686d5f38 100644 --- a/crmeb/app/services/order/StoreOrderCreateServices.php +++ b/crmeb/app/services/order/StoreOrderCreateServices.php @@ -282,7 +282,7 @@ class StoreOrderCreateServices extends BaseServices /** @var StoreOrderCartInfoServices $cartServices */ $cartServices = app()->make(StoreOrderCartInfoServices::class); $priceData['coupon_id'] = $couponId; - $order = $this->transaction(function () use ($cartIds, $orderInfo, $cartInfo, $key, $userInfo, $useIntegral, $priceData, $combinationId, $seckillId, $bargainId, $cartServices, $seckillServices, $uid, $addressId, $advanceId) { + $order = $this->transaction(function () use ($cartIds, $orderInfo, $cartInfo, $key, $userInfo, $useIntegral, $priceData, $combinationId, $seckillId, $bargainId, $cartServices, $uid, $addressId, $advanceId) { //创建订单 $order = $this->dao->save($orderInfo); if (!$order) { diff --git a/crmeb/app/services/product/product/StoreProductServices.php b/crmeb/app/services/product/product/StoreProductServices.php index 3ac57dfb6..1de8d206b 100644 --- a/crmeb/app/services/product/product/StoreProductServices.php +++ b/crmeb/app/services/product/product/StoreProductServices.php @@ -654,7 +654,7 @@ class StoreProductServices extends BaseServices //采集商品下载图片 if ($type == -1) { - $s_image_down = $d_image_down = []; + $s_image_down = []; //下载商品轮播图 foreach ($slider_image as $s_image) { if (sys_config('queue_open', 0) == 1) { @@ -671,8 +671,7 @@ class StoreProductServices extends BaseServices if (sys_config('queue_open', 0) == 1) { ProductCopyJob::dispatch('copyDescriptionImage', [$res->id, $description, $d_image, count($match[1])]); } else { - if (!is_int(strpos($d_image, 'http'))) $d_image = 'http://' . ltrim($d_image, '\//'); - $d_image_down[] = $d_img = app()->make(CopyTaobaoServices::class)->downloadCopyImage($d_image); + $d_img = app()->make(CopyTaobaoServices::class)->downloadCopyImage(!is_int(strpos($d_image, 'http')) ? 'http://' . ltrim($d_image, '\//') : $d_image); $description = str_replace($d_image, $d_img, $description); } }