This commit is contained in:
evoxwht 2026-01-23 11:06:29 +08:00
parent 00e443e361
commit a01bf0807a

View File

@ -279,7 +279,7 @@ class ExportServices extends BaseServices
if (isset($where['cate_id']) && $where['cate_id']) { if (isset($where['cate_id']) && $where['cate_id']) {
/** @var StoreCategoryServices $storeCategory */ /** @var StoreCategoryServices $storeCategory */
$storeCategory = app()->make(StoreCategoryServices::class); $storeCategory = app()->make(StoreCategoryServices::class);
$cateIds = $storeCategory->getColumn(['pid' => $where['cate_id']], 'id'); $cateIds = $storeCategory->getColumn(['pid' => (int)$where['cate_id']], 'id');
} }
if ($cateIds) { if ($cateIds) {
$cateIds[] = $where['cate_id']; $cateIds[] = $where['cate_id'];