From c64921972ff8371b9a3ec9b95e596aee75c79723 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 25 Feb 2026 11:56:23 +0800 Subject: [PATCH] bugfix --- discount/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discount/init.py b/discount/init.py index 506ecbd..b792c53 100644 --- a/discount/init.py +++ b/discount/init.py @@ -23,7 +23,7 @@ async def discount_qrcode(request, params_kw): webp = fs.webpath(p) async with get_sor_context(env, 'discount') as sor: biz_date = await env.get_business_date(sor) - if biz_date <= expired_date: + if biz_date >= expired_date: raise Exception('Promote QRCODE is out of time') ret = {