diff --git a/web/src/helpers/utils.jsx b/web/src/helpers/utils.jsx index 5ce83e67..d10682fd 100644 --- a/web/src/helpers/utils.jsx +++ b/web/src/helpers/utils.jsx @@ -622,26 +622,9 @@ export const calculateModelPrice = ({ let usedGroupRatio = groupRatio[selectedGroup]; if (selectedGroup === 'all' || usedGroupRatio === undefined) { - // 在模型可用分组中选择倍率最小的分组,若无则使用 1 - let minRatio = Number.POSITIVE_INFINITY; - if ( - Array.isArray(record.enable_groups) && - record.enable_groups.length > 0 - ) { - record.enable_groups.forEach((g) => { - const r = groupRatio[g]; - if (r !== undefined && r < minRatio) { - minRatio = r; - usedGroup = g; - usedGroupRatio = r; - } - }); - } - - // 如果找不到合适分组倍率,回退为 1 - if (usedGroupRatio === undefined) { - usedGroupRatio = 1; - } + // 默认视图:显示模型原始价格,不乘分组倍率 + usedGroup = 'all'; + usedGroupRatio = 1; } // 2. 根据计费类型计算价格