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']);