Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gamera_videos_no_ui
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liusq
gamera_videos_no_ui
Commits
eeeda510
Commit
eeeda510
authored
Aug 23, 2024
by
“liusq”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
超时去掉图片上传02
parent
3f9e745b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
CameraHandle.h
+2
-0
HttpService.cpp
+4
-4
Httpclient.cpp
+1
-1
mainwindow.cpp
+0
-2
No files found.
CameraHandle.h
View file @
eeeda510
...
@@ -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
);
//重启设备
//重启设备
...
...
HttpService.cpp
View file @
eeeda510
...
@@ -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
.
error
String
();
resp
->
msg
=
m_httpClient
.
error
Code
();
}
}
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
.
error
String
();
resp
->
msg
=
m_httpClient
.
error
Code
();
//resp->msg=OPERATION_FAILED;
//resp->msg=OPERATION_FAILED;
}
}
return
resp
;
return
resp
;
...
...
Httpclient.cpp
View file @
eeeda510
...
@@ -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
(
10
000
);
m_timer
->
setInterval
(
6
000
);
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
()));
}
}
...
...
mainwindow.cpp
View file @
eeeda510
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment