From 7628f299c20052aa2fe7fee8e495fa20206d131e Mon Sep 17 00:00:00 2001 From: xfy Date: Mon, 15 Jun 2026 11:40:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=A0=E8=BD=BD=E4=BF=9D=E8=B4=A8?= =?UTF-8?q?=E6=9C=9F=E5=88=97=E8=A1=A8=E6=97=B6=E9=92=B3=E5=88=B6=E6=97=A7?= =?UTF-8?q?=E6=95=B0=E6=8D=AE,=E6=B8=85=E7=90=86=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E6=8C=81=E4=B9=85=E5=8C=96=E7=9A=84=E8=B4=9F=E6=95=B0=E5=A4=A9?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/main/kotlin/plus/rua/project/ui/DateCheckerScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/kotlin/plus/rua/project/ui/DateCheckerScreen.kt b/core/src/main/kotlin/plus/rua/project/ui/DateCheckerScreen.kt index 601b6bb..c57c137 100644 --- a/core/src/main/kotlin/plus/rua/project/ui/DateCheckerScreen.kt +++ b/core/src/main/kotlin/plus/rua/project/ui/DateCheckerScreen.kt @@ -143,8 +143,9 @@ fun DateCheckerScreen(onBack: () -> Unit, modifier: Modifier = Modifier) { var productionDate by remember { mutableStateOf(saved?.first ?: today) } var rows by remember { mutableStateOf( + // clampExpiryDays 兜底:清理本修复前可能持久化的负数旧数据 (saved?.second ?: defaultRows).mapIndexed { index, days -> - ExpiryRow(index, days) + ExpiryRow(index, clampExpiryDays(days)) } ) }