From 5e8bb6e019fe6e85cb3ca7d4123950307473bed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Wed, 26 Oct 2022 10:05:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#10000=20=E5=95=86=E5=93=81=E5=9B=BE?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/Business/KuaiTuanTuan/Groups.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Business/KuaiTuanTuan/Groups.php b/app/Services/Business/KuaiTuanTuan/Groups.php index a661808..cdb17d1 100644 --- a/app/Services/Business/KuaiTuanTuan/Groups.php +++ b/app/Services/Business/KuaiTuanTuan/Groups.php @@ -23,7 +23,7 @@ class Groups $ratio = (float)trim(substr($shop->ratio, 1)); foreach ($groupGoods as $item) { $thumbUrls = $item['goodsSku']['thumb_url']; - $thumbUrls = ArrayUtils::index($thumbUrls, 'shop_id'); + $thumbUrls = $thumbUrls ? ArrayUtils::index($thumbUrls, 'shop_id') : []; $priceInFen = $item['price_in_fen']; // 常规数值 switch ($operator) { case '+':