|
|
@@ -300,7 +300,7 @@ void CAccessAuthSession::Handle_InitializeNew(SpReqAnsContext<AccessAuthService_
|
|
|
m_pEntity->m_strUserID = ctx->Req.strUserID.GetData();
|
|
|
m_pEntity->m_strPassword = ctx->Req.strPassword.GetData();
|
|
|
|
|
|
- m_pEntity->BeginInitMKACS(); //待实现
|
|
|
+ m_pEntity->BeginInitMKACS();
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -2125,6 +2125,40 @@ bool CAccessAuthEntity::SendInitMKReqACS(CInitlizerMKReq& initMKReq)
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+void CAccessAuthEntity::EndInitMK(DWORD rc, const char *pszErrMsg)
|
|
|
+{
|
|
|
+ LOG_FUNCTION();
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("EndInitMK")("EndInitMK:rc:%d,errMsg:%s", rc, pszErrMsg);
|
|
|
+ GetFunction()->KillTimer(22);
|
|
|
+
|
|
|
+ m_strLastErrMsg = pszErrMsg;
|
|
|
+
|
|
|
+ if (rc != Error_Succeed)
|
|
|
+ {
|
|
|
+ LogWarn(Severity_Middle, Error_Unexpect, ERR_INITIALIZER_INIT_MK,
|
|
|
+ GetOutPutStr("%s%08X%s%s", "EndInitMK", rc,"pszErrMsg", pszErrMsg).c_str());
|
|
|
+
|
|
|
+ GetFunction()->ShowFatalError(pszErrMsg);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("EndInitMK")("初始化成功。。。");
|
|
|
+ }
|
|
|
+
|
|
|
+ m_eErrNum = rc;
|
|
|
+
|
|
|
+ bool bSuc = rc == Error_Succeed;
|
|
|
+
|
|
|
+ // 通知UI窗口
|
|
|
+ if (m_ctx != NULL) {
|
|
|
+ Dbg("success");
|
|
|
+ m_ctx->Ans.Errcode = rc;
|
|
|
+ m_ctx->Ans.ErrMsg = m_strLastErrMsg;
|
|
|
+ m_ctx->Answer(Error_Succeed);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
SP_BEGIN_ENTITY_MAP()
|
|
|
SP_ENTITY(CAccessAuthEntity)
|
|
|
SP_END_ENTITY_MAP()
|