Commit eeeda510 by “liusq”

超时去掉图片上传02

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