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
5bc2edc1
Commit
5bc2edc1
authored
Feb 20, 2025
by
“liusq”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改实时更新远程配置01
parent
eb684c5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
mainwindow.cpp
+15
-13
No files found.
mainwindow.cpp
View file @
5bc2edc1
...
...
@@ -195,6 +195,7 @@ bool MainWindow::getDeviceStatus(int UserId) {
}
return
devStatus
;
}
void
MainWindow
::
divParameterUpdate
(
vides_data
::
responseConfig
&
cloudConfig
,
QString
&
httpUrl
,
QString
&
serialNumber
){
bool
faceAlgorithm
=
false
,
licensePlateAlgorithm
=
false
,
uniformAlgorithm
=
false
,
timeChange
=
false
;
AlgorithmTaskManage
&
algorithmTaskManage
=
AlgorithmTaskManage
::
getInstance
();
...
...
@@ -585,22 +586,9 @@ void MainWindow::startCamera(const QString &httpurl){
qInfo
()
<<
"盒子获取mac失败"
;
}
reStatus
.
mac
=
std
::
move
(
is_mac
);
realTimeUpdateDivConfig
(
nonConstHttpUrl
,
serialNumber
);
HttpService
httpService
(
httpurl
);
vides_data
::
response
*
re
=
httpService
.
httpFindCameras
(
serialNumber
,
devices
);
if
(
config
.
nvrConfig
.
isOn
&&
!
getDeviceStatus
(
hk_Device
)
){
int
res
=
loginNetDvr
(
config
.
nvrConfig
.
ip
,
config
.
nvrConfig
.
username
,
config
.
nvrConfig
.
password
,
config
.
nvrConfig
.
port
);
if
(
res
<
0
){
nvr_status
=
false
;
}
else
{
nvr_status
=
true
;
}
}
else
if
(
!
config
.
nvrConfig
.
isOn
){
nvr_status
=
false
;
}
if
(
re
->
code
==
0
||
re
->
code
==
20004
){
//本次搜索到设备列表
...
...
@@ -625,6 +613,20 @@ void MainWindow::startCamera(const QString &httpurl){
instace
.
deleteObj
(
res_config
);
return
;
}
config
.
nvrConfig
=
cloudConfig
.
nvrConfig
;
if
(
config
.
nvrConfig
.
isOn
&&
!
getDeviceStatus
(
hk_Device
)
){
int
res
=
loginNetDvr
(
config
.
nvrConfig
.
ip
,
config
.
nvrConfig
.
username
,
config
.
nvrConfig
.
password
,
config
.
nvrConfig
.
port
);
if
(
res
<
0
){
nvr_status
=
false
;
}
else
{
nvr_status
=
true
;
}
}
else
if
(
!
config
.
nvrConfig
.
isOn
){
nvr_status
=
false
;
}
instace
.
deleteObj
(
res_config
);
divParameterUpdate
(
cloudConfig
,
nonConstHttpUrl
,
serialNumber
);
...
...
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