|
@@ -178,14 +178,13 @@ namespace Chromium {
|
|
|
LOG_TRACE("subscribe AccessAuthorization log failed!");
|
|
|
else
|
|
|
LOG_TRACE("subscribe AccessAuthorization success!");
|
|
|
- GetFunction()->SubscribeLog(m_uuidAccessAuth, this, Log_Error, Severity_None, Error_IgnoreAll, -1, "AccessAuthorization");
|
|
|
+ GetFunction()->SubscribeLog(m_uuidAccessAuthErr, this, Log_Error, Severity_None, Error_IgnoreAll, -1, "AccessAuthorization");
|
|
|
|
|
|
GetFunction()->RegistSysVarEvent("UIState", this);
|
|
|
|
|
|
GetFunction()->RegistSysVarEvent("EntryPermit", this);
|
|
|
|
|
|
- generateBussinessLimitTimer();
|
|
|
-
|
|
|
+ //generateBussinessLimitTimer();
|
|
|
|
|
|
// 按照单屏方式
|
|
|
pTransactionContext->SendAnswer(Error_Succeed);
|
|
@@ -193,6 +192,7 @@ namespace Chromium {
|
|
|
|
|
|
void CChromiumEntity::OnSysVarEvent(const char* pszKey, const char* pszValue, const char* pszOldValue, const char* pszEntityName)
|
|
|
{
|
|
|
+ Dbg("OnSysVarEvent %s, old->new:%s->%s", pszKey, pszOldValue, pszValue);
|
|
|
if ((strnicmp(pszKey, "UIState", strlen("UIState")) == 0))
|
|
|
{
|
|
|
if (strnicmp(pszValue, "M", strlen("M")) == 0)
|
|
@@ -205,20 +205,21 @@ namespace Chromium {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ /*
|
|
|
else if (0 == CSimpleStringA("EntryPermit").Compare(pszKey, true))
|
|
|
{
|
|
|
- if (0 == CSimpleStringA("A").Compare(pszValue, true) || 0 == CSimpleStringA("F").Compare(pszValue, true))
|
|
|
+ if ((pszValue != NULL && (pszValue[0] == 'a' || pszValue[0] == 'A')) || (pszValue != NULL && (pszValue[0] == 'f' || pszValue[0] == 'F')))
|
|
|
{
|
|
|
auto openRet = CModTools::get_mutable_instance().StartChromiumBrowser(ERR_PAGE_REASON::breakdown);
|
|
|
Dbg("access failed, open page breakdown, %d", openRet.first);
|
|
|
}
|
|
|
- else if (0 == CSimpleStringA("L").Compare(pszValue, true)) {
|
|
|
+ else if (pszValue != NULL && (pszValue[0] == 'l' || pszValue[0] == 'L')) {
|
|
|
CSystemRunInfo sysruninfo;
|
|
|
GetFunction()->GetSystemRunInfo(sysruninfo);
|
|
|
if (!(sysruninfo.dwBootOption & SystemBootOptionEnum::BootOption_Test))
|
|
|
generateCefclientTimer();//非--test时,才会打开浏览器
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
|
|
|
void CChromiumEntity::OnPreClose(EntityCloseCauseEnum eCloseCause, CSmartPointer<ITransactionContext> pTransactionContext)
|
|
@@ -237,6 +238,7 @@ namespace Chromium {
|
|
|
const DWORD dwSysError, const DWORD dwUserCode, const DWORD dwEntityInstanceID, const WORD wEntityDevelID,
|
|
|
const CAutoArray<DWORD>& Param, const char* pszEntityName, const char* pszModuleName, const char* pszMessage)
|
|
|
{
|
|
|
+ Dbg("OnLog %x", dwUserCode);
|
|
|
switch (dwUserCode)
|
|
|
{
|
|
|
case LOG_EVT_BEGIN_CAMERA_CONFIG:
|
|
@@ -249,7 +251,7 @@ namespace Chromium {
|
|
|
Dbg("end show Screen Camera config, close page cameraconfig");
|
|
|
CModTools::get_mutable_instance().killChromiumByName((+PAGE_TYPE::CameraConfig)._to_string());
|
|
|
break;
|
|
|
- /*
|
|
|
+
|
|
|
case EVENT_ACCESSAUTH_SUCCEED:
|
|
|
Dbg("access auth success, open page mainurl");
|
|
|
{
|
|
@@ -266,7 +268,7 @@ namespace Chromium {
|
|
|
Dbg("access failed, open page breakdown, %d", openRet.first);
|
|
|
}
|
|
|
break;
|
|
|
- */
|
|
|
+
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
@@ -469,7 +471,7 @@ namespace Chromium {
|
|
|
void CChromiumEntity::generateCefclientTimer()
|
|
|
{
|
|
|
m_pTimerListener = new TimerOutHelper<CChromiumEntity>(this, &CChromiumEntity::OnTaskTimerListener, NULL, false);
|
|
|
- GetFunction()->SetTimer(CHROMIUM_TIMER_ID, m_pTimerListener, 3000); //间隔执行时间
|
|
|
+ GetFunction()->SetTimer(CHROMIUM_TIMER_ID, m_pTimerListener, 2000); //间隔执行时间
|
|
|
}
|
|
|
|
|
|
void CChromiumEntity::generateBussinessLimitTimer() {
|