From a6077217e25f5804027194a5c2848e773eda1abd Mon Sep 17 00:00:00 2001
From: 张世豪 <979909237@qq.com>
Date: 星期五, 21 十一月 2025 15:47:17 +0800
Subject: [PATCH] 修改
---
src/chushihua/Chushihua.java | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/src/chushihua/Chushihua.java b/src/chushihua/Chushihua.java
index 561c68f..4773b12 100644
--- a/src/chushihua/Chushihua.java
+++ b/src/chushihua/Chushihua.java
@@ -2,6 +2,9 @@
import java.io.File;
import java.util.List;
+
+import dialog.Dingshidialog;
+import dialog.Errlog;
import home.MachineConfig;
/**
@@ -66,7 +69,7 @@
return true;
} catch (Exception e) {
- System.err.println("绯荤粺鍒濆鍖栧紓甯�: " + e.getMessage());
+ Errlog.logOperation("绯荤粺鍒濆鍖栧紓甯�: " + e.getMessage());
e.printStackTrace();
return false;
}
@@ -83,7 +86,7 @@
////System.out.println("绯荤粺鍏抽棴锛氳疆璇㈡煡璇㈠凡鍋滄");
}
} catch (Exception e) {
- System.err.println("绯荤粺鍏抽棴寮傚父: " + e.getMessage());
+ Errlog.logOperation("绯荤粺鍏抽棴寮傚父: " + e.getMessage());
}
}
@@ -96,7 +99,7 @@
// 妫�鏌ラ厤缃枃浠舵槸鍚﹀瓨鍦�
File configFile = new File(configFilePath);
if (!configFile.exists()) {
- System.err.println("閰嶇疆鏂囦欢涓嶅瓨鍦�: " + configFilePath);
+ Errlog.logOperation("閰嶇疆鏂囦欢涓嶅瓨鍦�: " + configFilePath);
return false;
}
@@ -119,7 +122,7 @@
return true;
} catch (Exception e) {
- System.err.println("绯荤粺鍒濆鍖栧け璐�: " + e.getMessage());
+ Errlog.logOperation("绯荤粺鍒濆鍖栧け璐�: " + e.getMessage());
e.printStackTrace();
return false;
}
@@ -176,7 +179,7 @@
*/
public boolean saveConfig(String configFilePath) {
if (machineConfig == null) {
- System.err.println("閰嶇疆鏈姞杞斤紝鏃犳硶淇濆瓨");
+ Errlog.logOperation("閰嶇疆鏈姞杞斤紝鏃犳硶淇濆瓨");
return false;
}
@@ -185,7 +188,7 @@
////System.out.println("閰嶇疆宸蹭繚瀛樺埌: " + configFilePath);
return true;
} catch (Exception e) {
- System.err.println("淇濆瓨閰嶇疆澶辫触: " + e.getMessage());
+ Errlog.logOperation("淇濆瓨閰嶇疆澶辫触: " + e.getMessage());
return false;
}
}
@@ -195,7 +198,7 @@
*/
public MachineConfig getMachineConfig() {
if (!initialized) {
- throw new IllegalStateException("绯荤粺鏈垵濮嬪寲锛岃鍏堣皟鐢╥nitialize()鏂规硶");
+ Dingshidialog.showTimedDialog(null,10,"绯荤粺鏈垵濮嬪寲鎴愬姛");
}
return machineConfig;
}
--
Gitblit v1.9.3