fix: replace hardcoded '元' in unit_label with correct currency symbol
This commit is contained in:
parent
6f0b501a95
commit
d0e92e4b9b
@ -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'):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user