fix: replace hardcoded '元' in unit_label with correct currency symbol

This commit is contained in:
yumoqing 2026-07-08 15:40:56 +08:00
parent 6f0b501a95
commit d0e92e4b9b

View File

@ -967,6 +967,9 @@ async def get_pricing_display(ppid, model=None):
label = pf.get('label', pf.get('factor', '')) label = pf.get('label', pf.get('factor', ''))
up = pf.get('unit_price') up = pf.get('unit_price')
ul = pf.get('unit_label', '') 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: if up is not None:
display_lines.append(f" - {label}: {up} {ul}{filter_text}") display_lines.append(f" - {label}: {up} {ul}{filter_text}")
if pf.get('tiered'): if pf.get('tiered'):