From 6000ea7b0182ca75f22a05c23d032bc051b0db6a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 29 Jun 2026 15:26:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20discountid=E6=94=B9=E7=94=A8request.quer?= =?UTF-8?q?y.get,=20aiohttp=E6=A0=87=E5=87=86=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- discount/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discount/init.py b/discount/init.py index 2e91ce7..415e35c 100644 --- a/discount/init.py +++ b/discount/init.py @@ -739,7 +739,7 @@ async def get_discount_setting_products(request): Used in Jinja2 template: {% set products = get_discount_setting_products(request) %} """ env = request._run_ns - discountid = (request._run_ns.param_kw or {}).get('discountid', '') + discountid = request.query.get('discountid', '') user_orgid = await env.get_userorgid() if not discountid or not user_orgid: