|
@@ -299,13 +299,13 @@ void CHealthManagerEntity::OnCheckTimeTimeout()
|
|
|
//1、AccessAuth ok
|
|
|
//2、have ever enter main page OR
|
|
|
if (!m_bSayIdle)
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("m_fsm.GetAccessAuthFlag():%d, m_bEnterMainPageEver:%d, m_bInMainPage:%d", m_fsm.GetAccessAuthFlag()
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("m_fsm.GetAccessAuthFlag():%d, m_bEnterMainPageEver:%d, m_bInMainPage:%d", m_fsm.CheckIfAccessAuthSuc()
|
|
|
, m_bEnterMainPageEver, CheckUIStateIsM());
|
|
|
//oilyang@20241230 check accessauth flag AND if in Main page ever
|
|
|
//oilyang@20250313 "Main page ever" has two scenes
|
|
|
//1. have enter main page ever,that is "m_bEnterMainPageEver is true"
|
|
|
//2. healthmanager have been lost at some point in the past,we check the "UIState" value if 'M'
|
|
|
- if (m_fsm.GetAccessAuthFlag() && (m_bEnterMainPageEver || (!m_bEnterMainPageEver && CheckUIStateIsM())))
|
|
|
+ if (m_fsm.CheckIfAccessAuthSuc() && (m_bEnterMainPageEver || (!m_bEnterMainPageEver && CheckUIStateIsM())))
|
|
|
{
|
|
|
iCheckGuardian = CheckGuardianIsRun(true);
|
|
|
if (!m_bSayIdle)
|
|
@@ -379,7 +379,7 @@ void CHealthManagerEntity::OnCheckTimeTimeout()
|
|
|
else
|
|
|
{
|
|
|
//oilyang@20190905 add if auth suc,tell guardian,for upgrade
|
|
|
- if (m_fsm.GetAccessAuthFlag())
|
|
|
+ if (m_fsm.CheckIfAccessAuthSuc())
|
|
|
{
|
|
|
if (CheckGuardianIsRun(true) > 0)
|
|
|
{
|