Commit eeeda510 by “liusq”

超时去掉图片上传02

parent 3f9e745b
......@@ -97,6 +97,8 @@ public:
void sdkEncodeCfg(const char *enCode);
//28181更新
void sdkDevSpvMn(const char* spvMn);
//gb218开启
int updateSdkDevStatus(bool status);
void updateSdkDevSpvMn(vides_data::responseGb28181 *gb28181);
//重启设备
......
......@@ -248,7 +248,7 @@ vides_data::response *HttpService::httpLicensePlateRecognition(vides_data::reque
qDebug()<<"httpLicensePlateRecognition msg"<<m_httpClient.errorString();
resp->code=2;
resp->msg=m_httpClient.errorString();
resp->msg=m_httpClient.errorCode();
}
return resp;
}
......@@ -316,7 +316,7 @@ vides_data::response *HttpService::httpPostUniforms(QByteArray &img,QString &id,
qDebug()<<m_httpClient.errorCode();
qDebug()<<"httpPostUniforms"<<m_httpClient.errorString();
resp->code=2;
resp->msg=OPERATION_FAILED;
resp->msg=m_httpClient.errorCode();
}
return resp;
}
......@@ -360,7 +360,7 @@ vides_data::response *HttpService::httpPostFacePopulation(QByteArray &img,int &h
qDebug()<<"httpPostFacePopulation===>end";
resp->code=2;
resp->msg=OPERATION_FAILED;
resp->msg=m_httpClient.errorCode();
}
return resp;
}
......@@ -408,7 +408,7 @@ vides_data::response *HttpService::httpPostFaceReconition(vides_data::requestFac
resp->msg=map["message"].toString();
}else{
resp->code=2;
resp->msg=m_httpClient.errorString();
resp->msg=m_httpClient.errorCode();
//resp->msg=OPERATION_FAILED;
}
return resp;
......
......@@ -7,7 +7,7 @@ HttpClient::HttpClient(QObject *parent)
{
m_networkAccessManager = new QNetworkAccessManager(this);
m_timer = new QTimer(this);
m_timer->setInterval(10000);
m_timer->setInterval(6000);
m_timer->setSingleShot(true);
connect(m_timer, SIGNAL(timeout()), &m_eventLoop, SLOT(quit()));
}
......
......@@ -34,8 +34,6 @@ MainWindow::MainWindow()
QString serialNumber;
findLocalSerialNumber(serialNumber);
qInfo()<<"serialNumber==:"<<serialNumber;
bool configFetched = false;
while (!configFetched) {
HttpService httpService(httpurl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment