Explorar o código

Z991239-4875 #comment feat: 修改首次更新的判断

陈纪林80310970 %!s(int64=2) %!d(string=hai) anos
pai
achega
60b8e0ad88
Modificáronse 1 ficheiros con 2 adicións e 8 borrados
  1. 2 8
      Module/mod_CenterSetting/CenterSettingConn.cpp

+ 2 - 8
Module/mod_CenterSetting/CenterSettingConn.cpp

@@ -151,6 +151,8 @@ int CenterSettingsMicroServiceHelper::GetCenterSetting(bool byHand)
         }
     }
 
+    if (m_isFirst) m_isFirst = false;
+
     DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("m_strVersion:%s", m_strVersion.GetData());
     req.m_update_time = GetUpdateTime();
     GetTimeoutValue(req.m_timeOut);
@@ -183,14 +185,6 @@ int CenterSettingsMicroServiceHelper::GetCenterSetting(bool byHand)
                 break;
         }
     }
-    
-    if (ret1 == EXIST && m_isFirst) {
-        m_isFirst = false;
-    }
-    else if (ret1 == SUCC && !m_isFirst) {
-        m_isFirst = true;
-    }
-
     return ret1;
 }