Merge branch 'master' into feat/agc_call_rec
Project CI / Repository checks (pull_request) Successful in 2m53s
Project CI / Frontend tests (pull_request) Successful in 3m28s
Project CI / Backend tests (pull_request) Successful in 7m21s
Project CI / Native shell tests (pull_request) Successful in 19m41s

This commit is contained in:
2026-09-02 18:42:01 +08:00
+2 -2
View File
@@ -1,10 +1,10 @@
export function formatMudPointCount(value: number, compact = false) {
const normalizedValue = Math.max(0, Math.round(value));
if (compact && normalizedValue >= 100_000_000) {
return `${(normalizedValue / 100_000_000).toFixed(1)}亿`;
return `${(Math.floor(normalizedValue / 10_000_000) / 10).toFixed(1)}亿`;
}
if (compact && normalizedValue >= 10_000) {
return `${(normalizedValue / 10_000).toFixed(1)}`;
return `${(Math.floor(normalizedValue / 1_000) / 10).toFixed(1)}`;
}
return normalizedValue.toLocaleString('zh-CN');
}