Эх сурвалжийг харах

Z991239-4959 #comment 准入去掉集中配置文件的检测、pinpad去掉明文的输入调用

oilyang 1 жил өмнө
parent
commit
b6bbaa7a1b

+ 3 - 24
Module/mod_accessauth/AccessAuthFSM.cpp

@@ -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)
 {

+ 0 - 1
Module/mod_accessauth/AccessAuthFSM.h

@@ -508,7 +508,6 @@ public:
 	{
 		m_fNetworkChecking = busing;
 	}
-	BOOL IsCenterSettingFilesExist();
 	void SetDevPubKey(CSimpleStringA csDevPubKey) { m_strDevPubKey = csDevPubKey; }
 	CSimpleStringA GetDevPubKey() { return m_strDevPubKey; }
 

+ 7 - 1
Module/mod_pinpad/PinPadFSM.cpp

@@ -1081,8 +1081,14 @@ int CPinPadFSM::GetInput(SpReqAnsContext<PinPadService_GetInputSM_Req, PinPadSer
 		m_bPinInput = false;
 		return 1;
 	}
-	ErrorCodeEnum err;
 
+	if (!m_inputSMCtx->Req.encrypt)
+	{
+		SetErrPackage("GetInput(SM)", m_devSN, Error_Unexpect, PinPad_UserErrorCode_NoPlainInput);
+		m_inputSMCtx->Answer(Error_Unexpect, AlarmDEC());
+		return 1;
+	}
+	ErrorCodeEnum err;
 	err = GetEncryptText(m_inputSMCtx);
 
 	DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)

+ 1 - 0
Module/mod_pinpad/PinPad_UserErrorCode.h

@@ -44,4 +44,5 @@
 #define PinPad_UserErrorCode_Unexpected_Exit						(PinPad_UserErrorCode_Start + 33)
 #define PinPad_UserErrorCode_UnknownSMFlag							(PinPad_UserErrorCode_Start + 34)
 #define PinPad_UserErrorCode_DevConnect_CostTime					(PinPad_UserErrorCode_Start + 35)
+#define PinPad_UserErrorCode_NoPlainInput							(PinPad_UserErrorCode_Start + 36)
 #endif //_PINPAD_USER_ERROR_CODE_H

+ 3 - 2
Module/mod_vtmloader/VtmLoaderFSM.cpp

@@ -928,13 +928,14 @@ int CVtmLoaderFSM::EntityLoad()
 	if (csCoreBootList.IsNullOrEmpty() || csCoreBootList.IndexOf("HealthManager") < 0 || csCoreBootList.IndexOf("AccessAuthorization") < 0
 		|| csCoreBootList.IndexOf("UpgradeManager") < 0 || csCoreBootList.IndexOf("HeartBeat") < 0
 		|| csCoreBootList.IndexOf("TokenKeeper") < 0 || csCoreBootList.IndexOf("ResourceWatcher") < 0
-		|| csCoreBootList.IndexOf("EventConverter") < 0 || csCoreBootList.IndexOf("Alarm") < 0)
+		|| csCoreBootList.IndexOf("EventConverter") < 0 || csCoreBootList.IndexOf("Alarm") < 0
+		|| csCoreBootList.IndexOf("CenterSetting") < 0)
 	{
 		if (csCoreBootList.IsNullOrEmpty())
 			LogWarn(Severity_High, Error_Unexpect, VtmLoader_BootInfoPrint, "CoreBoot配置为空,请联系总行开发人员检查");
 		else
 			LogWarn(Severity_High, Error_Unexpect, VtmLoader_BootInfoPrint, CSimpleStringA::Format("CoreBoot配置异常,请联系总行开发人员检查(%s)", csCoreBootList.GetData()));
-		csCoreBootList = "HealthManager=0|TokenKeeper=0|Alarm=0|UpgradeManager=0|ResourceWatcher=0|AccessAuthorization=0|HeartBeat=0|EventConverter=0";
+		csCoreBootList = "HealthManager=0|TokenKeeper=0|Alarm=0|UpgradeManager=0|ResourceWatcher=0|AccessAuthorization=0|HeartBeat=0|EventConverter=0|CenterSetting=0";
 	}
 
 	spConfigCen->ReadConfigValueInt(GetEntityBase()->GetEntityName(), "SleepEnterOpMS", m_sleepEnterOpMS);

+ 6 - 0
addin/cfg/UserCodeToMsgTip.ini

@@ -30,6 +30,8 @@
 0x20300207=[RTA230E] 卡箱1未检测到卡片,请检测卡箱1中卡片是否放好或卡片余量过低
 0x20300208=[RTA230F] 卡箱2未检测到卡片,请检测卡箱2中卡片是否放好或卡片余量过低
 0x20300209=[RTA230G] 卡箱3未检测到卡片,请检测卡箱3中卡片是否放好或卡片余量过低
+0x20300210=[RTA2314] 卡库有旧的盘库记录,不允许开始新的盘库
+0x20300212=[RTA2315] 卡库无本地盘库记录,请退出后重试
 0x2030020A=[RTA230H] 卡箱1本地计数无卡,请执行清机计划
 0x2030020B=[RTA230J] 卡箱2本地计数无卡,请执行清机计划
 0x2030020C=[RTA230K] 卡箱3本地计数无卡,请执行清机计划
@@ -49,6 +51,9 @@
 0x203002A5=[RTA230Y] 卡库未正常启动,请确认卡库启动完成之后再发起业务
 0x203002A3=[RTA230W] [HW] 跨机时卡库处理耗时过长,请联系卡库厂商排查
 0x20300269=[RTA2311] [HW] 卡库卡机未成功启动,请联系卡库厂商排查卡库
+0x203002C8=[RTA2316] [HW] 卡库盘库失败,卡槽移卡失败,请联系厂商排查
+0x203002C9=[RTA2317] [HW] 卡库盘库失败,读卡失败吞卡,请联系厂商排查
+0x203002CA=[RTA2318] [HW] 卡库盘库失败,卡移回卡槽失败,请联系厂商排查
 
 0x20300032=[RTA2320] [HW] 查询卡槽状态失败,请联系卡库厂商排查
 0x20300002=[RTA2322] [HW] 取卡机状态失败,请重试或联系厂商排查
@@ -89,6 +94,7 @@
 0x20600221=[RTA260F] 密码输入时收到退出事件,请重试
 0x20600202=[RTA2610] 打开运行时文件失败,请联系行内开发人员排查
 0x20600222=[RTA2611] 不能识别的密钥标识,请联系行内开发人员排查
+0x20600224=[RTA2612] 不支持明文输入获取,请联系行内开发人员排查
 
 0x2180000D=[RTA2O01] 连接高拍仪实体模块失败,请尝试重启应用或联系厂商排查
 0x2180000E=[RTA2O02] 操作频繁,请稍候重试