From 6e6a6a14f09c8230055b9e1155b1c0c3f66af73c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 29 Jun 2026 15:28:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20discountid=E6=94=B9=E7=94=A8request.=5Fp?= =?UTF-8?q?arams=5Fkw(=E5=90=8Caccounting=E6=A8=A1=E5=9D=97=E6=96=B9?= =?UTF-8?q?=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 415e35c..c34e4bb 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.query.get('discountid', '') + discountid = (request._params_kw or {}).get('discountid', '') user_orgid = await env.get_userorgid() if not discountid or not user_orgid: