|
|
@@ -2335,14 +2335,20 @@ void CHealthManagerFSM::ToLogWarnTermAboutInfo(BOOL bSuccessFlag)
|
|
|
bool bTmpEtyNewStart = m_bEntityNewStart;
|
|
|
CSimpleStringA csOSVerion(""), csWarnMsg(""), csAsiaInfo;
|
|
|
std::map<std::string, std::string> termInfo;
|
|
|
+ std::map<std::string, std::string> pcInfo;
|
|
|
termInfo["version"] = m_sysInfo.InstallVersion.ToString();
|
|
|
termInfo["TerminalNo"] = m_sysInfo.strTerminalID;
|
|
|
- termInfo["MachineType"] = m_sysInfo.strMachineType;
|
|
|
- termInfo["MachineVersion"] = CSimpleStringA::Format("%d.%d", m_sysInfo.MachineVersion.GetMajor(), m_sysInfo.MachineVersion.GetMinor());
|
|
|
- termInfo["Screen"] = CSimpleStringA::Format("%d", m_sysInfo.eScreen);
|
|
|
- termInfo["Site"] = m_sysInfo.strSite;
|
|
|
- termInfo["EnrolGPS"] = CSimpleStringA::Format("%.3f,%.3f", m_sysInfo.EnrolGPS.GetLongitude(), m_sysInfo.EnrolGPS.GetLatitude());
|
|
|
- termInfo["EnrolAddr"] = m_sysInfo.strEnrolAddr;
|
|
|
+
|
|
|
+ pcInfo["MachineType"] = m_sysInfo.strMachineType;
|
|
|
+ pcInfo["MachineVersion"] = CSimpleStringA::Format("%d.%d", m_sysInfo.MachineVersion.GetMajor(), m_sysInfo.MachineVersion.GetMinor());
|
|
|
+ pcInfo["Screen"] = CSimpleStringA::Format("%d", m_sysInfo.eScreen);
|
|
|
+ pcInfo["Site"] = m_sysInfo.strSite;
|
|
|
+ pcInfo["EnrolGPS"] = CSimpleStringA::Format("%.3f,%.3f", m_sysInfo.EnrolGPS.GetLongitude(), m_sysInfo.EnrolGPS.GetLatitude());
|
|
|
+ pcInfo["EnrolAddr"] = m_sysInfo.strEnrolAddr;
|
|
|
+ pcInfo["Manufacturer"] = m_sysInfo.strManufacturer;
|
|
|
+ pcInfo["MachineModel"] = m_sysInfo.strMachineModel;
|
|
|
+ pcInfo["SN"] = m_sysInfo.strMachineSN;
|
|
|
+
|
|
|
|
|
|
if (!m_csErrEntity.IsNullOrEmpty())
|
|
|
termInfo["ErrEntity"] = m_csErrEntity;
|
|
|
@@ -2386,14 +2392,16 @@ void CHealthManagerFSM::ToLogWarnTermAboutInfo(BOOL bSuccessFlag)
|
|
|
#endif //RVC_OS_LINUX
|
|
|
|
|
|
std::pair<bool, std::string> strResult;
|
|
|
+ std::pair<bool, std::string> strPCInfo;
|
|
|
strResult = generateJsonStr(termInfo);
|
|
|
- Dbg("[%s]", strResult.second.c_str());
|
|
|
+ strPCInfo = generateJsonStr(pcInfo);
|
|
|
//oilyang@20210323 discard the following rule of throwing LogWarn.Always throw LogWarn
|
|
|
//oilyang@20201201 log warn every time if content of msg has changed
|
|
|
if (bTmpEtyNewStart)
|
|
|
{
|
|
|
LogWarn(Severity_Low, Error_Unexpect, LOG_WARN_HEALTH_UPLOAD_INFO_ABOUT_TERM, strResult.second.c_str());
|
|
|
LogWarn(Severity_Low, Error_Unexpect, HealthManager_UserErrorCode_First_Info_AboutTerm, strResult.second.c_str());
|
|
|
+ LogWarn(Severity_Low, Error_Unexpect, HealthManager_UserErrorCode_First_Info_AboutPC, strPCInfo.second.c_str());
|
|
|
}
|
|
|
else
|
|
|
LogWarn(Severity_Low, Error_Unexpect, LOG_WARN_HEALTH_UPLOAD_INFO_ABOUT_TERM, strResult.second.c_str());
|