|
@@ -19,37 +19,6 @@ void HeartBeatServerSession::Handle_CardActive(SpReqAnsContext<HeartBeatService_
|
|
|
void CHeartBeatEntity::OnSysVarEvent(const char *pszKey,
|
|
|
const char *pszValue, const char *pszOldValue, const char *pszEntityName)
|
|
|
{
|
|
|
- if ((_strnicmp(pszKey, "TradeManageState", strlen("TradeManageState")) == 0))
|
|
|
- {
|
|
|
- if (_strnicmp(pszValue, "L", strlen("L")) == 0)
|
|
|
- {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("To set trade manager state to 8.");
|
|
|
- m_fsm.SetTradeManagerState(8);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("To set trade manager state to 1.");
|
|
|
- m_fsm.SetTradeManagerState(1);
|
|
|
- }
|
|
|
- }
|
|
|
- if ((_strnicmp(pszKey, "TerminalManagerState", strlen("TerminalManagerState")) == 0))
|
|
|
- {
|
|
|
- if (_strnicmp(pszValue, "L", strlen("L")) == 0)
|
|
|
- {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("To set terminal manager state to 7.");
|
|
|
- m_fsm.SetTradeManagerState(7);
|
|
|
- }
|
|
|
- else if (_strnicmp(pszValue, "N", strlen("N")) == 0)
|
|
|
- {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("To set terminal manager state to 1.");
|
|
|
- m_fsm.SetTradeManagerState(1);
|
|
|
- }
|
|
|
- else if (_strnicmp(pszValue, "K", strlen("K")) == 0)
|
|
|
- {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("To set terminal manager state to 6.");
|
|
|
- m_fsm.SetTradeManagerState(6);
|
|
|
- }
|
|
|
- }
|
|
|
if ((_strnicmp(pszKey, "TerminalStage", strlen("TerminalStage")) == 0))
|
|
|
{
|
|
|
if (_strnicmp(pszValue, "A", strlen("A")) == 0)
|
|
@@ -61,19 +30,6 @@ void CHeartBeatEntity::OnSysVarEvent(const char *pszKey,
|
|
|
}
|
|
|
void CHeartBeatEntity::OnBroadcastEvent(CUUID SubID, const char *pszEntityName, DWORD dwMessageId, DWORD dwMessageSignature, CAutoBuffer Buffer)
|
|
|
{
|
|
|
- if (_strnicmp(pszEntityName, "HealthManager", strlen("HealthManager")) == 0)
|
|
|
- {
|
|
|
- if (dwMessageSignature == eMsgSig_TerminalManager)
|
|
|
- {
|
|
|
- HealthManager::TerminalManager tm;
|
|
|
- SpBuffer2Object(Buffer, tm);
|
|
|
- if (tm.op == 99)
|
|
|
- {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("Receive healthmanager event 99,to set terminal manager state to 1.");
|
|
|
- m_fsm.SetTradeManagerState(1);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
void CHeartBeatEntity::OnLog(const CAutoArray<CUUID> &SubIDs, const CUUID nLogID, const LogTypeEnum eLogType, const SeverityLevelEnum eLevel,
|
|
|
const DWORD dwSysError, const DWORD dwUserCode, const DWORD dwEntityInstanceID, const WORD wEntityDevelID,
|