From 31aa10eaae103c30e02d7dc6c71ff4e50de361b3 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期一, 12 五月 2025 15:28:32 +0800
Subject: [PATCH] 1. 修改报警的显示模式(包括日志,需要后期修复) 2. 添加Release模式编译

---
 SourceCode/Bond/Servo/Servo.cpp |   48 ++++++++++++++++++++++++------------------------
 1 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/SourceCode/Bond/Servo/Servo.cpp b/SourceCode/Bond/Servo/Servo.cpp
index 1f0b95e..c3d5bce 100644
--- a/SourceCode/Bond/Servo/Servo.cpp
+++ b/SourceCode/Bond/Servo/Servo.cpp
@@ -130,33 +130,33 @@
 
 
 	// 初始化生产履历管理器
-	try {
-		if (!ProductionLogManager::getInstance().initProductionTable()) {
-			AfxMessageBox("初始化生产履历管理器失败!");
-			return FALSE;
-		}
-	}
-	catch (const std::exception& ex) {
-		CString errorMsg;
-		errorMsg.Format(_T("初始化生产履历管理器失败:%s"), CString(ex.what()));
-		AfxMessageBox(errorMsg, MB_ICONERROR);
-		return FALSE;
-	}
+	//try {
+	//	if (!ProductionLogManager::getInstance().initProductionTable()) {
+	//		AfxMessageBox("初始化生产履历管理器失败!");
+	//		return FALSE;
+	//	}
+	//}
+	//catch (const std::exception& ex) {
+	//	CString errorMsg;
+	//	errorMsg.Format(_T("初始化生产履历管理器失败:%s"), CString(ex.what()));
+	//	AfxMessageBox(errorMsg, MB_ICONERROR);
+	//	return FALSE;
+	//}
 
 
 	// 初始化SECS运行设置管理库
-	try {
-		if (!SECSRuntimeManager::getInstance().initRuntimeSetting()) {
-			AfxMessageBox("初始化SECS运行设置失败!");
-			return FALSE;
-		}
-	}
-	catch (const std::exception& ex) {
-		CString errorMsg;
-		errorMsg.Format(_T("初始化SECS运行设置失败:%s"), CString(ex.what()));
-		AfxMessageBox(errorMsg, MB_ICONERROR);
-		return FALSE;
-	}
+	//try {
+	//	if (!SECSRuntimeManager::getInstance().initRuntimeSetting()) {
+	//		AfxMessageBox("初始化SECS运行设置失败!");
+	//		return FALSE;
+	//	}
+	//}
+	//catch (const std::exception& ex) {
+	//	CString errorMsg;
+	//	errorMsg.Format(_T("初始化SECS运行设置失败:%s"), CString(ex.what()));
+	//	AfxMessageBox(errorMsg, MB_ICONERROR);
+	//	return FALSE;
+	//}
 
 
 	CServoDlg dlg;

--
Gitblit v1.9.3