|
|
@@ -208,6 +208,17 @@ struct TimeSynTask : ITaskSp {
|
|
|
if (m_fsm->GetmAccessAuthHost().IsNullOrEmpty())
|
|
|
{
|
|
|
LogWarn(Severity_Middle, Error_Unexpect, AccessAuthorization_UserErrorCode_AccessAuth_NULL, "TimeSynTask:准入Url为空");
|
|
|
+ FSMEvent* pEvent = new FSMEvent(CAccessAuthFSM::Event_ReqTokenCancel);
|
|
|
+ pEvent->param1 = AccessAuthorization_UserErrorCode_AccessAuth_NULL;
|
|
|
+ m_fsm->PostEventFIFO(pEvent);
|
|
|
+ CSimpleStringA strMsg(true);
|
|
|
+ if (!m_fsm->IsCenterSettingFilesExist()) {
|
|
|
+ strMsg = CSimpleStringA::Format("准入服务地址为空(集中配置文件不存在),请下载集中配置后重启应用");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ strMsg = CSimpleStringA::Format("准入服务地址为空,请下载集中配置或尝试重启应用");
|
|
|
+ }
|
|
|
+ m_fsm->doWarnMsg(AccessAuthorization_UserErrorCode_AccessAuth_NULL, strMsg.GetData(), true);
|
|
|
return;
|
|
|
}
|
|
|
CSystemStaticInfo si;
|
|
|
@@ -301,6 +312,10 @@ struct TimeSynTask : ITaskSp {
|
|
|
m_fsm->doWarnMsg(ERROR_ACCESSAUTH_CONNECT_ACS,
|
|
|
GetOutPutStr("%s%s", "连接总行ACS准入服务失败(TimeSynTask).", result.WhatError().c_str()).c_str(), true);
|
|
|
DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("TimeSynTask Connect Failed.");
|
|
|
+
|
|
|
+ FSMEvent* pEvent = new FSMEvent(CAccessAuthFSM::Event_ReqTokenCancel);
|
|
|
+ pEvent->param1 = AccessAuthorization_UserErrorCode_ACS_FAIL;
|
|
|
+ m_fsm->PostEventFIFO(pEvent);
|
|
|
}
|
|
|
|
|
|
#else
|
|
|
@@ -682,6 +697,17 @@ struct GetTokenTask : ITaskSp {
|
|
|
if (m_fsm->GetmAccessAuthHost().IsNullOrEmpty()) {
|
|
|
|
|
|
LogWarn(Severity_Middle, Error_Unexpect, AccessAuthorization_UserErrorCode_AccessAuth_NULL, "GetTokenTask:准入Url为空");
|
|
|
+ FSMEvent* pEvent = new FSMEvent(CAccessAuthFSM::Event_ReqTokenCancel);
|
|
|
+ pEvent->param1 = AccessAuthorization_UserErrorCode_AccessAuth_NULL;
|
|
|
+ m_fsm->PostEventFIFO(pEvent);
|
|
|
+ CSimpleStringA strMsg(true);
|
|
|
+ if (!m_fsm->IsCenterSettingFilesExist()) {
|
|
|
+ strMsg = CSimpleStringA::Format("准入服务地址为空(集中配置文件不存在),请下载集中配置后重启应用");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ strMsg = CSimpleStringA::Format("准入服务地址为空,请下载集中配置或尝试重启应用");
|
|
|
+ }
|
|
|
+ m_fsm->doWarnMsg(AccessAuthorization_UserErrorCode_AccessAuth_NULL, strMsg.GetData(), true);
|
|
|
return;
|
|
|
}
|
|
|
CSystemStaticInfo si;
|