From af4176bcb76321107bdb0af0a2961456e20d015f Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 13 Apr 2023 10:43:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4ACache=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E5=90=8E=E6=9C=80=E5=90=8E=E4=B8=80=E4=B8=AA=E6=8D=A2=E8=A1=8C?= =?UTF-8?q?=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yunbao/common/manager/base/ACache.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/yunbao/common/manager/base/ACache.java b/common/src/main/java/com/yunbao/common/manager/base/ACache.java index d414eb9cb..9e8f403ca 100644 --- a/common/src/main/java/com/yunbao/common/manager/base/ACache.java +++ b/common/src/main/java/com/yunbao/common/manager/base/ACache.java @@ -161,8 +161,9 @@ public class ACache { String readString = ""; String currentLine; while ((currentLine = in.readLine()) != null) { - readString += currentLine+"\n"; + readString += currentLine + "\n"; } + readString = readString.substring(0, readString.length() - 1); if (!Utils.isDue(readString)) { return Utils.clearDateInfo(readString); } else {