From eebc637beacf496697ccee0e5620e0638aa77983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Fri, 26 Aug 2022 09:56:09 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0ids=E5=8F=82=E6=95=B0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/api/controller/v1/store/StoreProductController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crmeb/app/api/controller/v1/store/StoreProductController.php b/crmeb/app/api/controller/v1/store/StoreProductController.php index 63d9b3ff3..830155c2f 100644 --- a/crmeb/app/api/controller/v1/store/StoreProductController.php +++ b/crmeb/app/api/controller/v1/store/StoreProductController.php @@ -66,6 +66,10 @@ class StoreProductController } if ($where['ids'] && is_string($where['ids'])) { $where['ids'] = explode(',', $where['ids']); + foreach ($where['ids'] as $key => &$item) { + $where['ids'][$key] = (int)$item; + if ($where['ids'][$key] == 0) unset($where['ids'][$key]); + } } if (!$where['ids']) { unset($where['ids']);