fix(storefront): get_products_by_category包装函数补透传org_id(模板显式指定机构0)

This commit is contained in:
yumoqing 2026-08-28 16:51:28 +08:00
parent fd794616b3
commit d2162db306

View File

@ -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):