【程序目录】优化查询参数

This commit is contained in:
吴昊天 2026-01-23 11:06:13 +08:00
parent d3dba751ca
commit 124137e94e

View File

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