Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7c16c208
authored
Dec 09, 2025
by
Seefs
Committed by
GitHub
Dec 09, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2360 from feitianbubu/pr2/fix-price-currency
parents
a0f12749
e030ac82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
web/src/helpers/render.jsx
+5
-2
No files found.
web/src/helpers/render.jsx
View file @
7c16c208
...
@@ -1086,9 +1086,12 @@ function renderPriceSimpleCore({
...
@@ -1086,9 +1086,12 @@ function renderPriceSimpleCore({
);
);
const
finalGroupRatio
=
effectiveGroupRatio
;
const
finalGroupRatio
=
effectiveGroupRatio
;
const
{
symbol
,
rate
}
=
getCurrencyConfig
();
if
(
modelPrice
!==
-
1
)
{
if
(
modelPrice
!==
-
1
)
{
return
i18next
.
t
(
'价格:${{price}} * {{ratioType}}:{{ratio}}'
,
{
const
displayPrice
=
(
modelPrice
*
rate
).
toFixed
(
6
);
price
:
modelPrice
,
return
i18next
.
t
(
'价格:{{symbol}}{{price}} * {{ratioType}}:{{ratio}}'
,
{
symbol
:
symbol
,
price
:
displayPrice
,
ratioType
:
ratioLabel
,
ratioType
:
ratioLabel
,
ratio
:
finalGroupRatio
,
ratio
:
finalGroupRatio
,
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment