|
@@ -1139,7 +1139,7 @@ void CHttpBll::requestProc(CHttpRequestPackage requestPkg)
|
|
|
}
|
|
|
break;
|
|
|
|
|
|
- case RequestType::rtExamControlCheckTime:
|
|
|
+ case RequestType::rtExamControlCheckTime:
|
|
|
{
|
|
|
CBaseResponsePackage res;
|
|
|
res.nCode = nCode;
|
|
@@ -1150,6 +1150,23 @@ void CHttpBll::requestProc(CHttpRequestPackage requestPkg)
|
|
|
emit sgnExamControlCheckTime(res);
|
|
|
}
|
|
|
break;
|
|
|
+
|
|
|
+ case RequestType::rtSkipFaceCheckParam:
|
|
|
+ {
|
|
|
+ CSkipFaceCheckParam res;
|
|
|
+ res.nCode = nCode;
|
|
|
+ if (sErrorMsg != "" || nCode != 200)
|
|
|
+ {
|
|
|
+ res.sMessage = sErrorMsg;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ genSkipFaceCheckParam(&res, sResponse);
|
|
|
+ }
|
|
|
+ emit sgnSkipFaceCheckParam(res);
|
|
|
+ }
|
|
|
+ break;
|
|
|
+
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
@@ -1163,7 +1180,7 @@ void CHttpBll::genUpgrade(CUpgrade *pUpgrade, const std::string &sResponse)
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if(!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pUpgrade->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pUpgrade->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pUpgrade->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -1194,7 +1211,7 @@ void CHttpBll::genAgreement(CAgreement *pAgreement, const std::string &sResponse
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if(!reader.parse(sRes, jsonRoot))
|
|
|
{
|
|
|
- pAgreement->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pAgreement->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pAgreement->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -1216,7 +1233,7 @@ void CHttpBll::genStudentClientConfig(CStudentClientConfig *pStudentClientConfig
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pStudentClientConfig->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pStudentClientConfig->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pStudentClientConfig->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -1264,6 +1281,10 @@ void CHttpBll::genStudentClientConfig(CStudentClientConfig *pStudentClientConfig
|
|
|
{
|
|
|
pStudentClientConfig->bDisableVirtualMachine = true;
|
|
|
}
|
|
|
+ else if(sType == "EXAMING_BLACK_LIST_CHECK")
|
|
|
+ {
|
|
|
+ pStudentClientConfig->bExamingBlackListCheck = true;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
pStudentClientConfig->sRootOrgId = jsonRoot["ROOT_ORG_ID"].asString().c_str();// " : "0",
|
|
@@ -1294,7 +1315,7 @@ void CHttpBll::genSysNotice(CSysNotice *pSysNotice, const std::string &sResponse
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pSysNotice->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pSysNotice->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pSysNotice->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -1328,7 +1349,7 @@ void CHttpBll::genLoginLimit(CLoginLimit *pLoginLimit, const std::string &sRespo
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pLoginLimit->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pLoginLimit->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pLoginLimit->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
pLoginLimit->nCount = jsonRoot["count"].asInt64();
|
|
@@ -1348,7 +1369,7 @@ void CHttpBll::genLoginInfo(CLoginInfo *pLoginInfo, const std::string &sResponse
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pLoginInfo->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pLoginInfo->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pLoginInfo->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
// pLoginInfo->nCode = jsonRoot["code"].asInt();
|
|
@@ -1392,7 +1413,7 @@ void CHttpBll::genGetStudentClientMenu(CGetStudentClientMenu *pGetStudentClientM
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pGetStudentClientMenu->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pGetStudentClientMenu->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pGetStudentClientMenu->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -1421,7 +1442,7 @@ void CHttpBll::genGetStudentInfoBySession(CGetStudentInfoBySession *pGetStudentI
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pGetStudentInfoBySession->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pGetStudentInfoBySession->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pGetStudentInfoBySession->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
pGetStudentInfoBySession->nId = jsonRoot["id"].asInt64();
|
|
@@ -1462,7 +1483,7 @@ void CHttpBll::genSpecialtyNameList(CSpecialtyNameList *pSpecialtyNameList, cons
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pSpecialtyNameList->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pSpecialtyNameList->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pSpecialtyNameList->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
QString sSpecialtyName = "";
|
|
@@ -1495,7 +1516,7 @@ void CHttpBll::genGetUserNoticeList(CGetUserNoticeList *pGetUserNoticeList, cons
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pGetUserNoticeList->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pGetUserNoticeList->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pGetUserNoticeList->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -1545,7 +1566,7 @@ void CHttpBll::genQueryBatchList(CQueryBatchList *pQueryBatchList, const std::st
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pQueryBatchList->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pQueryBatchList->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pQueryBatchList->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
int nSize = jsonRoot.size();
|
|
@@ -1573,16 +1594,16 @@ void CHttpBll::genGetExamProperty(CGetExamProperty *pGetExamProperty, const std:
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pGetExamProperty->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pGetExamProperty->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pGetExamProperty->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
|
- if (jsonRoot.isMember("BEFORE_EXAM_REMARK"))
|
|
|
+ if (jsonRoot.isMember("BEFORE_EXAM_REMARK") && jsonRoot["BEFORE_EXAM_REMARK"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->sBeforeExamRemark = jsonRoot["BEFORE_EXAM_REMARK"].asString().c_str();
|
|
|
}
|
|
|
|
|
|
- if (jsonRoot.isMember("CHECK_ENVIRONMENT"))
|
|
|
+ if (jsonRoot.isMember("CHECK_ENVIRONMENT") && jsonRoot["CHECK_ENVIRONMENT"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->bCheckEnvironment = QVariant(jsonRoot["CHECK_ENVIRONMENT"].asString().c_str()).toBool();
|
|
|
}
|
|
@@ -1592,62 +1613,62 @@ void CHttpBll::genGetExamProperty(CGetExamProperty *pGetExamProperty, const std:
|
|
|
// pGetExamProperty->nFaceThreshold = QVariant(jsonRoot["PC_CLIENT_FACE_THRESHOLD"].asString().c_str()).toInt();
|
|
|
// }
|
|
|
|
|
|
- if (jsonRoot.isMember("IS_FACE_CHECK"))
|
|
|
+ if (jsonRoot.isMember("IS_FACE_CHECK") && jsonRoot["IS_FACE_CHECK"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->bIsFaceCheck = QVariant(jsonRoot["IS_FACE_CHECK"].asString().c_str()).toBool();
|
|
|
}
|
|
|
|
|
|
- if (jsonRoot.isMember("SNAPSHOT_INTERVAL"))
|
|
|
+ if (jsonRoot.isMember("SNAPSHOT_INTERVAL") && jsonRoot["SNAPSHOT_INTERVAL"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->nSnapshotInterval = QVariant(jsonRoot["SNAPSHOT_INTERVAL"].asString().c_str()).toInt();
|
|
|
}
|
|
|
|
|
|
- if (jsonRoot.isMember("FACE_VERIFY_START_MINUTE"))
|
|
|
+ if (jsonRoot.isMember("FACE_VERIFY_START_MINUTE") && jsonRoot["FACE_VERIFY_START_MINUTE"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->nFaceVerifyStartMinute = QVariant(jsonRoot["FACE_VERIFY_START_MINUTE"].asString().c_str()).toInt();
|
|
|
}
|
|
|
|
|
|
- if (jsonRoot.isMember("FACE_VERIFY_END_MINUTE"))
|
|
|
+ if (jsonRoot.isMember("FACE_VERIFY_END_MINUTE") && jsonRoot["FACE_VERIFY_END_MINUTE"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->nFaceVerifyEndMinute = QVariant(jsonRoot["FACE_VERIFY_END_MINUTE"].asString().c_str()).toInt();
|
|
|
}
|
|
|
|
|
|
- if (jsonRoot.isMember("IS_STRANGER_ENABLE"))
|
|
|
+ if (jsonRoot.isMember("IS_STRANGER_ENABLE") && jsonRoot["IS_STRANGER_ENABLE"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->bIsStrangerEnable = QVariant(jsonRoot["IS_STRANGER_ENABLE"].asString().c_str()).toBool();
|
|
|
}
|
|
|
|
|
|
- if (jsonRoot.isMember("PRACTICE_TYPE"))
|
|
|
+ if (jsonRoot.isMember("PRACTICE_TYPE") && jsonRoot["PRACTICE_TYPE"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->sPracticeType = jsonRoot["PRACTICE_TYPE"].asString().c_str();
|
|
|
}
|
|
|
|
|
|
- if (jsonRoot.isMember("FREEZE_TIME"))
|
|
|
+ if (jsonRoot.isMember("FREEZE_TIME") && jsonRoot["FREEZE_TIME"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->nFreezeTime = QVariant(jsonRoot["FREEZE_TIME"].asString().c_str()).toInt();
|
|
|
}
|
|
|
|
|
|
- if (jsonRoot.isMember("AFTER_EXAM_REMARK"))
|
|
|
+ if (jsonRoot.isMember("AFTER_EXAM_REMARK") && jsonRoot["AFTER_EXAM_REMARK"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->sAfterExamRemark = jsonRoot["AFTER_EXAM_REMARK"].asString().c_str();
|
|
|
}
|
|
|
|
|
|
- if (jsonRoot.isMember("IS_OBJ_SCORE_VIEW"))
|
|
|
+ if (jsonRoot.isMember("IS_OBJ_SCORE_VIEW") && jsonRoot["IS_OBJ_SCORE_VIEW"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->bIsObjScoreView = QVariant(jsonRoot["IS_OBJ_SCORE_VIEW"].asString().c_str()).toBool();
|
|
|
}
|
|
|
|
|
|
- if (jsonRoot.isMember("SHOW_CHEATING_REMARK"))
|
|
|
+ if (jsonRoot.isMember("SHOW_CHEATING_REMARK") && jsonRoot["SHOW_CHEATING_REMARK"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->bShowCheatingRemark = QVariant(jsonRoot["SHOW_CHEATING_REMARK"].asString().c_str()).toBool();
|
|
|
}
|
|
|
|
|
|
- if (jsonRoot.isMember("CHEATING_REMARK"))
|
|
|
+ if (jsonRoot.isMember("CHEATING_REMARK") && jsonRoot["CHEATING_REMARK"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->sCheatingRemark = jsonRoot["CHEATING_REMARK"].asString().c_str();
|
|
|
}
|
|
|
|
|
|
- if (jsonRoot.isMember("IS_FACE_VERIFY_BEFORE"))
|
|
|
+ if (jsonRoot.isMember("IS_FACE_VERIFY_BEFORE") && jsonRoot["IS_FACE_VERIFY_BEFORE"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->bIsLivenessBefore = QVariant(jsonRoot["IS_FACE_VERIFY_BEFORE"].asString().c_str()).toBool();
|
|
|
}
|
|
@@ -1669,9 +1690,12 @@ void CHttpBll::genGetExamProperty(CGetExamProperty *pGetExamProperty, const std:
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if(jsonRoot.isMember("FACE_VERIFY_FORCE_EXIT") && jsonRoot["FACE_VERIFY_FORCE_EXIT"] != Json::Value::null)
|
|
|
+ {
|
|
|
+ pGetExamProperty->bFaceVerifyForceExit = QVariant(jsonRoot["FACE_VERIFY_FORCE_EXIT"].asString().c_str()).toBool();
|
|
|
+ }
|
|
|
|
|
|
-
|
|
|
- if(jsonRoot.isMember("SHOW_MULTIPLE_CHOICE_WARNING"))
|
|
|
+ if(jsonRoot.isMember("SHOW_MULTIPLE_CHOICE_WARNING") && jsonRoot["SHOW_MULTIPLE_CHOICE_WARNING"] != Json::Value::null)
|
|
|
{
|
|
|
pGetExamProperty->bMutipleAnserCountTips = QVariant(jsonRoot["SHOW_MULTIPLE_CHOICE_WARNING"].asString().c_str()).toBool();
|
|
|
}
|
|
@@ -1690,7 +1714,7 @@ void CHttpBll::genStartExamLimit(CStartExamLimit *pStartExamLimit, const std::st
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pStartExamLimit->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pStartExamLimit->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pStartExamLimit->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -1711,7 +1735,7 @@ void CHttpBll::genIpLimit(CIpLimit *pIpLimit, const std::string &sResponse)
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pIpLimit->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pIpLimit->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pIpLimit->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -1731,7 +1755,7 @@ void CHttpBll::genStartExam(CStartExam *pStartExam, const std::string &sResponse
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pStartExam->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pStartExam->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pStartExam->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
pStartExam->sCourseCode = jsonRoot["courseCode"].asString().c_str();
|
|
@@ -1791,7 +1815,7 @@ void CHttpBll::genGetExamById(CGetExamById *pGetExamById, const std::string &sRe
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pGetExamById->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pGetExamById->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pGetExamById->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -1821,7 +1845,7 @@ void CHttpBll::genStartAnswer(CStartAnswer *pStartAnswer, const std::string &sRe
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pStartAnswer->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pStartAnswer->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pStartAnswer->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
pStartAnswer->nDuration = jsonRoot["duration"].asInt64();
|
|
@@ -1842,7 +1866,7 @@ void CHttpBll::genGetQuestion(CGetQuestion *pGetQuestion, const std::string &sRe
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pGetQuestion->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pGetQuestion->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pGetQuestion->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
pGetQuestion->sId = jsonRoot["id"].asString().c_str();
|
|
@@ -1888,7 +1912,7 @@ void CHttpBll::genGetQuestionContent(CGetQuestionContent *pGetQuestionContent, c
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pGetQuestionContent->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pGetQuestionContent->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pGetQuestionContent->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -1999,7 +2023,7 @@ void CHttpBll::genQueryExamList(CQueryExamList *pQueryExamList, const std::strin
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pQueryExamList->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pQueryExamList->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pQueryExamList->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -2026,7 +2050,7 @@ void CHttpBll::genQueryExamEndList(CQueryExamEndList *pQueryExamEndList, const s
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pQueryExamEndList->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pQueryExamEndList->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pQueryExamEndList->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -2053,7 +2077,7 @@ void CHttpBll::genQueryObjectiveScoreList(CQueryObjectiveScoreList *pQueryObject
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pQueryObjectiveScoreList->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pQueryObjectiveScoreList->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pQueryObjectiveScoreList->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
int nScoreSize = jsonRoot.size();
|
|
@@ -2086,7 +2110,7 @@ void CHttpBll::genQueryHomeworkList(CQueryHomeworkList *pQueryHomeworkList, cons
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pQueryHomeworkList->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pQueryHomeworkList->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pQueryHomeworkList->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -2113,7 +2137,7 @@ void CHttpBll::genQueryPracticeCourseList(CQueryPracticeCourseList *pQueryPracti
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pQueryPracticeCourseList->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pQueryPracticeCourseList->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pQueryPracticeCourseList->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -2176,7 +2200,7 @@ void CHttpBll::genQueryPracticeRecordList(CQueryPracticeRecordList *pQueryPracti
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pQueryPracticeRecordList->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pQueryPracticeRecordList->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pQueryPracticeRecordList->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
int nSize = jsonRoot.size();
|
|
@@ -2214,7 +2238,7 @@ void CHttpBll::genGetPracticeDetailInfo(CGetPracticeDetailInfo *pGetPracticeDeta
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pGetPracticeDetailInfo->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pGetPracticeDetailInfo->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pGetPracticeDetailInfo->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
pGetPracticeDetailInfo->sCourseCode = jsonRoot["courseCode"].asString().c_str();
|
|
@@ -2253,7 +2277,7 @@ void CHttpBll::genFindExamRecordDataEntity(CFindExamRecordDataEntity *pFindExamR
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pFindExamRecordDataEntity->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pFindExamRecordDataEntity->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pFindExamRecordDataEntity->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -2274,7 +2298,7 @@ void CHttpBll::genGetExamRecordQuestions(CGetExamRecordQuestions *pGetExamRecord
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pGetExamRecordQuestions->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pGetExamRecordQuestions->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pGetExamRecordQuestions->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
int nSize = jsonRoot["examQuestionEntities"].size();
|
|
@@ -2319,7 +2343,7 @@ void CHttpBll::genGetOfflineCourse(CGetOfflineCourse *pGetOfflineCourse, const s
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pGetOfflineCourse->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pGetOfflineCourse->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pGetOfflineCourse->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
int nSize = jsonRoot.size();
|
|
@@ -2390,7 +2414,7 @@ void CHttpBll::genCheckExamInProgress(CCheckExamInProgress *pCheckExamInProgress
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pCheckExamInProgress->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pCheckExamInProgress->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pCheckExamInProgress->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
if (jsonRoot["data"].isNull())
|
|
@@ -2424,7 +2448,7 @@ void CHttpBll::genGetCourseInfo(CGetCourseInfo *pGetCourseInfo, const std::strin
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pGetCourseInfo->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pGetCourseInfo->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pGetCourseInfo->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
pGetCourseInfo->sCourseName = jsonRoot["courseName"].asString().c_str();
|
|
@@ -2449,7 +2473,7 @@ void CHttpBll::genFindExamQuestionList(CFindExamQuestionList *pFindExamQuestionL
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pFindExamQuestionList->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pFindExamQuestionList->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pFindExamQuestionList->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -2495,7 +2519,7 @@ void CHttpBll::genGetExamRecordPaperStruct(CGetExamRecordPaperStruct *pGetExamRe
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pGetExamRecordPaperStruct->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pGetExamRecordPaperStruct->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pGetExamRecordPaperStruct->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -2572,7 +2596,7 @@ void CHttpBll::genGetEndExamInfo(CGetEndExamInfo *pGetEndExamInfo, const std::st
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pGetEndExamInfo->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pGetEndExamInfo->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pGetEndExamInfo->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -2601,7 +2625,7 @@ void CHttpBll::genGetWXQrCode(CGetWXQrCode *pGetWXQrCode, const std::string &sRe
|
|
|
// Json::Value jsonRoot = Json::Value::null;
|
|
|
// if (!reader.parse(sResponse, jsonRoot))
|
|
|
// {
|
|
|
-// pProcessUpload->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+// pProcessUpload->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
// myDebug() << pProcessUpload->sMessage << sResponse.c_str();
|
|
|
// }
|
|
|
// pProcessUpload->sFileUrl = jsonRoot["fileUrl"].asString().c_str();
|
|
@@ -2620,7 +2644,7 @@ void CHttpBll::genGetOrgPropertiesByGroupWithoutCache(CGetOrgPropertiesByGroupWi
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pOrgProperties->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pOrgProperties->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pOrgProperties->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
pOrgProperties->nActionNum = QVariant(jsonRoot["ACTION_NUM"].asString().c_str()).toInt();
|
|
@@ -2629,7 +2653,7 @@ void CHttpBll::genGetOrgPropertiesByGroupWithoutCache(CGetOrgPropertiesByGroupWi
|
|
|
pOrgProperties->nActionDuration = QVariant(jsonRoot["ACTION_DURATION"].asString().c_str()).toInt();
|
|
|
pOrgProperties->nActionAlert = QVariant(jsonRoot["ACTION_ALERT"].asString().c_str()).toInt();
|
|
|
pOrgProperties->nAllActionDuration = QVariant(jsonRoot["ALL_ACTION_DURATION"].asString().c_str()).toInt();
|
|
|
- if(jsonRoot.isMember("PC_CLIENT_FACE_THRESHOLD"))
|
|
|
+ if(jsonRoot.isMember("PC_CLIENT_FACE_THRESHOLD") && jsonRoot["PC_CLIENT_FACE_THRESHOLD"] != Json::Value::null)
|
|
|
{
|
|
|
pOrgProperties->nFaceThreshold = QVariant(jsonRoot["PC_CLIENT_FACE_THRESHOLD"].asString().c_str()).toInt();
|
|
|
}
|
|
@@ -2649,7 +2673,7 @@ void CHttpBll::genStartFaceLiveVerify(CStartFaceLiveVerify *pStartFaceLiveVerify
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pStartFaceLiveVerify->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pStartFaceLiveVerify->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pStartFaceLiveVerify->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -2671,7 +2695,7 @@ void CHttpBll::genClientExamProcessUploadSign(CClientExamProcessUploadSign *pCli
|
|
|
Json::Value jsonRoot = Json::Value::null;
|
|
|
if (!reader.parse(sResponse, jsonRoot))
|
|
|
{
|
|
|
- pClientExamProcessUploadSign->sMessage = QString::fromLocal8Bit("解析后台返回环境信息json异常!");
|
|
|
+ pClientExamProcessUploadSign->sMessage = QString::fromLocal8Bit("数据请求失败,请检查网络是否正常!");
|
|
|
myDebug() << pClientExamProcessUploadSign->sMessage << sResponse.c_str();
|
|
|
}
|
|
|
|
|
@@ -2689,3 +2713,15 @@ void CHttpBll::genClientExamProcessUploadSign(CClientExamProcessUploadSign *pCli
|
|
|
myServerLog()<<sResponse.c_str()<<",exception error"<<e.what();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+void CHttpBll::genSkipFaceCheckParam(CSkipFaceCheckParam *pSkipFaceCheckParam, const std::string &sResponse)
|
|
|
+{
|
|
|
+ try
|
|
|
+ {
|
|
|
+ pSkipFaceCheckParam->bSkipFaceCheck = QVariant(sResponse.c_str()).toBool();
|
|
|
+ }
|
|
|
+ catch (const std::exception &e)
|
|
|
+ {
|
|
|
+ myServerLog()<<sResponse.c_str()<<",exception error"<<e.what();
|
|
|
+ }
|
|
|
+}
|