|
@@ -127,12 +127,7 @@ struct TimeSynTask : ITaskSp
|
|
|
pEvent->param1 = AccessAuthorization_UserErrorCode_AccessAuth_NULL;
|
|
|
m_fsm->PostEventFIFO(pEvent);
|
|
|
CSimpleStringA strMsg(true);
|
|
|
- if (!m_fsm->IsCenterSettingFilesExist()) {
|
|
|
- strMsg = CSimpleStringA::Format("集中配置文件不存在,请下载集中配置后重启应用");
|
|
|
- }
|
|
|
- else {
|
|
|
- strMsg = CSimpleStringA::Format("准入服务地址为空,请下载集中配置或重启应用");
|
|
|
- }
|
|
|
+ strMsg = CSimpleStringA::Format("准入服务地址为空,请下载集中配置或重启应用");
|
|
|
m_fsm->doWarnMsg(AccessAuthorization_UserErrorCode_AccessAuth_NULL, strMsg.GetData(), true);
|
|
|
return;
|
|
|
}
|
|
@@ -513,12 +508,7 @@ struct GetTokenTask : ITaskSp
|
|
|
pEvent->param1 = AccessAuthorization_UserErrorCode_AccessAuth_NULL;
|
|
|
m_fsm->PostEventFIFO(pEvent);
|
|
|
CSimpleStringA strMsg(true);
|
|
|
- if (!m_fsm->IsCenterSettingFilesExist()) {
|
|
|
- strMsg = CSimpleStringA::Format("集中配置文件不存在,请下载集中配置后重启应用");
|
|
|
- }
|
|
|
- else {
|
|
|
- strMsg = CSimpleStringA::Format("准入服务地址为空,请下载集中配置或尝试重启应用");
|
|
|
- }
|
|
|
+ strMsg = CSimpleStringA::Format("准入服务地址为空,请下载集中配置或尝试重启应用");
|
|
|
m_fsm->doWarnMsg(AccessAuthorization_UserErrorCode_AccessAuth_NULL, strMsg.GetData(), true);
|
|
|
return;
|
|
|
}
|
|
@@ -879,7 +869,7 @@ unsigned int CAccessAuthFSM::s2_on_event(FSMEvent* pEvent)
|
|
|
auto pEntity = (CAccessAuthEntity*)m_pEntity;
|
|
|
if (pEvent->param1 == AccessAuthorization_UserErrorCode_AccessAuth_NULL)
|
|
|
{
|
|
|
- CSimpleStringA strMsg = CSimpleStringA::Format("准入Url为空,集中配置文件:%s", IsCenterSettingFilesExist() ? "存在" : "不存在");
|
|
|
+ CSimpleStringA strMsg = CSimpleStringA::Format("准入Url为空");
|
|
|
pEntity->SetAuthErrMsg(strMsg);
|
|
|
}
|
|
|
else if (pEvent->param1 == AccessAuthorization_UserErrorCode_ACS_FAIL)
|
|
@@ -1518,17 +1508,6 @@ void CAccessAuthFSM::GetDiffSyncTimeFromCenterSettings()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-BOOL CAccessAuthFSM::IsCenterSettingFilesExist()
|
|
|
-{
|
|
|
- BOOL result(FALSE);
|
|
|
- CSimpleStringA strPath;
|
|
|
- GetEntityBase()->GetFunction()->GetPath("CenterSetting", strPath);
|
|
|
- if (!strPath.IsNullOrEmpty() && ExistsFileA(strPath)) {
|
|
|
- result = TRUE;
|
|
|
- }
|
|
|
- return result;
|
|
|
-}
|
|
|
-
|
|
|
template<class T>
|
|
|
void CAccessAuthFSM::AuthLogWarn(const T& ret, const string& url, const string& method, bool bNeedEvent)
|
|
|
{
|