From f132fb7f9ba14e93cea997b9b52f7bb19bf59d3a Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 25 Jul 2024 14:20:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=AF=B9=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E5=95=86=E5=93=81=E4=BF=A1=E6=81=AF=E7=9A=84?= =?UTF-8?q?=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/store/logic/WorkbenchLogic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/store/logic/WorkbenchLogic.php b/app/store/logic/WorkbenchLogic.php index de3a9e68..9adaf4a7 100644 --- a/app/store/logic/WorkbenchLogic.php +++ b/app/store/logic/WorkbenchLogic.php @@ -910,6 +910,7 @@ class WorkbenchLogic extends BaseLogic ->select()->toArray(); foreach ($list as $key => &$item) { $find = StoreProduct::where('id', $item['product_id'])->field('store_name,image')->find(); + if(!$find) continue; $item['store_name'] = $find['store_name']; $item['image'] = $find['image']; if ($item['profit'] == null) $item['profit'] = 0;