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
6d4d10ba
Commit
6d4d10ba
authored
Aug 06, 2024
by
“liusq”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
循环重试获取远程配置
parent
ec4d59c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
mainwindow.cpp
+10
-6
No files found.
mainwindow.cpp
View file @
6d4d10ba
...
@@ -36,15 +36,19 @@ MainWindow::MainWindow()
...
@@ -36,15 +36,19 @@ MainWindow::MainWindow()
findLocalSerialNumber
(
serialNumber
);
findLocalSerialNumber
(
serialNumber
);
qInfo
()
<<
"serialNumber==:"
<<
serialNumber
;
qInfo
()
<<
"serialNumber==:"
<<
serialNumber
;
bool
configFetched
=
false
;
while
(
!
configFetched
)
{
HttpService
httpService
(
httpurl
);
HttpService
httpService
(
httpurl
);
vides_data
::
response
*
res
=
httpService
.
httpDeviceConfig
(
serialNumber
,
config
);
vides_data
::
response
*
res
=
httpService
.
httpDeviceConfig
(
serialNumber
,
config
);
if
(
res
->
code
!=
0
)
{
if
(
res
->
code
!=
0
){
qInfo
()
<<
"请求远程商户配置失败,重试中..."
;
qInfo
()
<<
"请求远程商户配置失败"
;
instace
.
deleteObj
(
res
);
instace
.
deleteObj
(
res
);
return
;
QThread
::
sleep
(
5
);
// 等待5秒后重试
}
}
else
{
instace
.
deleteObj
(
res
);
instace
.
deleteObj
(
res
);
configFetched
=
true
;
}
}
initCommon
();
initCommon
();
...
...
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