|
@@ -10,6 +10,7 @@
|
|
|
#include <fcntl.h>
|
|
|
#include <errno.h>
|
|
|
#endif
|
|
|
+#include "CommEntityUtil.hpp"
|
|
|
#include "mod_healthmanager.h"
|
|
|
|
|
|
using namespace std;
|
|
@@ -1178,8 +1179,20 @@ ErrorCodeEnum CHealthManagerFSM::Initial()
|
|
|
CSimpleStringA sysinfoPath = "";
|
|
|
|
|
|
|
|
|
- WaitDeamonFinishTask* task = new WaitDeamonFinishTask(this);
|
|
|
- GetEntityBase()->GetFunction()->PostThreadPoolTask(task);
|
|
|
+#ifndef _WIN32
|
|
|
+
|
|
|
+ if (m_sysInfo.strMachineType.Compare("RVC.Stand2S") != 0) {
|
|
|
+ CSimpleStringA strErrMsg = CSimpleStringA::Format("当前版本不支持此机型:%s", (LPCTSTR)m_sysInfo.strMachineType);
|
|
|
+ SP::Module::Comm::LogErrorNotiyStruct notifyItem(Error_NotSupport, 0);
|
|
|
+ SP::Module::Comm::LogNotiyMessageStruct notifyMsg(strErrMsg);
|
|
|
+ notifyItem.Notify(notifyMsg);
|
|
|
+ return Error_Succeed;
|
|
|
+ }
|
|
|
+
|
|
|
+#endif //NOT _WIN32
|
|
|
+
|
|
|
+ WaitDeamonFinishTask* task = new WaitDeamonFinishTask(this);
|
|
|
+ GetEntityBase()->GetFunction()->PostThreadPoolTask(task);
|
|
|
|
|
|
return Error_Succeed;
|
|
|
}
|