From d2162db306c8f0731485b50744055d07a86a1add Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 28 Aug 2026 16:51:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(storefront):=20get=5Fproducts=5Fby=5Fcatego?= =?UTF-8?q?ry=E5=8C=85=E8=A3=85=E5=87=BD=E6=95=B0=E8=A1=A5=E9=80=8F?= =?UTF-8?q?=E4=BC=A0org=5Fid(=E6=A8=A1=E6=9D=BF=E6=98=BE=E5=BC=8F=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E6=9C=BA=E6=9E=840)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- product_management/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product_management/__init__.py b/product_management/__init__.py index 904a2d8..f94d924 100644 --- a/product_management/__init__.py +++ b/product_management/__init__.py @@ -71,10 +71,10 @@ async def get_category_tree(org_id=None): return await manager.get_category_tree(org_id) -async def get_products_by_category(category_id, status='1'): +async def get_products_by_category(category_id, org_id=None, status='1'): """Get all products under a category.""" manager = get_manager() - return await manager.get_products_by_category(category_id, status) + return await manager.get_products_by_category(category_id, org_id, status) async def import_categories_and_products(resource_module, org_id, parent_category_id, user_id):