CAppInfo.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #include "CAppInfo.h"
  2. #include <QDateTime>
  3. std::shared_ptr<CAppInfo> g_appInfoPtr = nullptr;
  4. CAppInfo::CAppInfo()
  5. {
  6. m_fRate = 1;
  7. m_sQssStr = "";
  8. m_sHttpServer = "";
  9. m_sHttpPort = "";
  10. m_nRecordId = 0;
  11. m_sEscDomain = "";
  12. m_sOrgPrefix = "";
  13. m_bDisableMutiScreen = false;
  14. m_bDisableRemoteAssistance = false;
  15. m_bInprogressCheckRemoteAssistance = true;
  16. m_bFullScreenTop = false;
  17. m_bDisableVirtualCamera = false;
  18. m_sRootOrgId = "";
  19. m_sRootOrgName = "";
  20. m_bShowQmthLogo = false;
  21. m_sMenuLogoUrl = "";
  22. m_bShowStudentClientAppQrcode = false;
  23. m_bWeiXinAnswerEnabled = false;
  24. m_jAudioPlayedCount = Json::Value::null;
  25. m_bShowStudentName = true;
  26. m_bShowStudentCode = true;
  27. m_bShowStudentIdentity = true;
  28. m_bMutipleAnserCountTips = false;
  29. m_nStudentId = 0;
  30. m_sStudentName = "";
  31. m_nOrgId = 0;
  32. m_sOrgCode = "";
  33. m_sOrgName = "";
  34. m_sStudentCode = "";
  35. m_sStudentIdentityNumber = "";
  36. m_sStudentPhotoPath = "";
  37. m_bStudentEnable = false;
  38. m_sSpecialtyName = "";
  39. m_sAppDownLoadUrl = "";
  40. m_nVersionId = 0;
  41. m_sVersionCode = "";
  42. m_sMachineId = "";
  43. m_sUpgradeUrl = "";
  44. m_sCacheFileDir = "temp/";
  45. m_bShowDebugInfo = false;
  46. m_bSkipFaceCheck = false;
  47. m_pAnsBgWidget = nullptr;
  48. m_bInprogressFaceLivenessFailedForceExit = true;
  49. }
  50. __int64 CAppInfo::serverMTime()
  51. {
  52. return QDateTime::currentDateTime().toMSecsSinceEpoch();
  53. }