From 026310bf48e0ee1bac3a4cbdc2a14ebef5d53607 Mon Sep 17 00:00:00 2001 From: ypsdf1 Date: Sun, 8 Nov 2026 15:27:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC98=E6=89=B9=E7=BB=AD=EF=BC=9A=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E7=A7=AF=E5=88=86=E6=8C=892=E4=BD=8D=E5=B0=8F?= =?UTF-8?q?=E6=95=B0=E5=B1=95=E7=A4=BA=EF=BC=88=E6=B6=88=E9=99=A4Java?= =?UTF-8?q?=E6=B5=AE=E7=82=B9=E7=B4=AF=E5=8A=A0=E9=95=BF=E5=B0=BE99.29999.?= =?UTF-8?q?..=3D99.3=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/credit.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/credit.php b/api/credit.php index cd3a093..29b5b10 100644 --- a/api/credit.php +++ b/api/credit.php @@ -257,6 +257,9 @@ function creditRealScore($db, $target) { $display = $real; if ($display < 0) $display = 0; if ($display > 1000) $display = 1000; + // ★ 第98批:镜像 double 带 Java 端浮点累加残差(如 99.29999999999998 = 99.3), + // 面板按 2 位小数展示(与游戏内显示精度一致),JSON 不再吐长尾 + $display = round($display, 2); return ['display' => $display, 'real' => $real]; }