From b9cc7390e8e8ce64c41c26fb369c98ce669d660c Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期三, 07 五月 2025 15:02:30 +0800
Subject: [PATCH] Merge branch '1.2.0'

---
 app/src/main/java/com/hdl/photovoltaic/other/HdlLogLogic.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/other/HdlLogLogic.java b/app/src/main/java/com/hdl/photovoltaic/other/HdlLogLogic.java
index 2e9e0dd..dab21db 100644
--- a/app/src/main/java/com/hdl/photovoltaic/other/HdlLogLogic.java
+++ b/app/src/main/java/com/hdl/photovoltaic/other/HdlLogLogic.java
@@ -19,7 +19,7 @@
     public static boolean isStartAddToMemory = true;
 
     //榛樿鎵撳嵃鏍囬
-    private static String logTitle = "鑷畾涔夎緭鍑烘墦鍗颁俊鎭�";
+    private static String logTitle = "";//鑷畾涔夎緭鍑烘墦鍗颁俊鎭�
 
     private static final Gson gson = new Gson();
 
@@ -71,7 +71,7 @@
             customLogObject.setCode(code);
             String json = logTitle + (UserConfigManage.getInstance().isBAccount() ? "(B绔�)==" : "(C绔�)==") + gson.toJson(customLogObject);
             if (isStartPrintLogcat) {
-                System.out.println(json);
+                System.out.println(json.replace("\\", ""));
             }
             if (isStartAddToMemory) {
                 if (isAddToMemory) {
@@ -90,8 +90,9 @@
      */
     public static void writeLog(String strLog) {
         synchronized (HdlLogLogic.class) {
-            strLog = TimeUtils.getTimeFromTimestamp(System.currentTimeMillis()) + "s%" + " " + strLog;//鍔犳墦鍗版椂闂�(s%鍗犱綅绗︼紝璁剧疆鏄剧ず鏃堕棿涓嶅悓瀛椾綋棰滆壊)
-            HdlFileLogic.getInstance().appendFile(HdlFileLogic.getInstance().getLogFileNamePath(), strLog);
+            strLog = TimeUtils.getTimeFromTimestamp(System.currentTimeMillis(), true) + "s%" + " " + strLog;//鍔犳墦鍗版椂闂�(s%鍗犱綅绗︼紝璁剧疆鏄剧ず鏃堕棿涓嶅悓瀛椾綋棰滆壊)
+
+            HdlFileLogic.getInstance().appendFile(HdlFileLogic.getInstance().getLogFileNamePath(), strLog.replace("\\", ""));
         }
     }
 

--
Gitblit v1.8.0