From d0e92e4b9b7b38c046ab11b572aae7f4a0a39704 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 8 Jul 2026 15:40:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20replace=20hardcoded=20'=E5=85=83'=20in?= =?UTF-8?q?=20unit=5Flabel=20with=20correct=20currency=20symbol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pricing/pricing.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pricing/pricing.py b/pricing/pricing.py index c322931..4c091fd 100644 --- a/pricing/pricing.py +++ b/pricing/pricing.py @@ -967,6 +967,9 @@ async def get_pricing_display(ppid, model=None): label = pf.get('label', pf.get('factor', '')) up = pf.get('unit_price') ul = pf.get('unit_label', '') + # Replace hardcoded "元" in unit_label with correct currency + if ul and currency != 'CNY': + ul = ul.replace('元', currency_label) if up is not None: display_lines.append(f" - {label}: {up} {ul}{filter_text}") if pf.get('tiered'):