debug: import_category_products加参数日志

This commit is contained in:
yumoqing 2026-07-13 16:12:32 +08:00
parent cfa9b321c4
commit f8717ca9a8

View File

@ -2,6 +2,11 @@ result = {'widgettype': 'Message', 'options': {'title': 'Error', 'message': 'Inv
try:
category_id = params_kw.get('category_id', '')
# Debug: log incoming params to help diagnose tree selection issue
from appPublic.log import debug
raw_body = getattr(request, 'body', b'')
debug(f'[import_category] params_kw={dict(params_kw)}, category_id={category_id}, body={raw_body[:200] if raw_body else \"none\"}')
if not category_id:
raise ValueError('请先选择一个产品类别')