Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmcoupon-linux
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
0
Merge Requests
0
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
李定达
fmcoupon-linux
Commits
6c2ee258
Commit
6c2ee258
authored
Jun 16, 2020
by
xiaojing.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add path
parent
ad3c22a2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
global.h
+1
-0
refreshxmlwork.cpp
+10
-1
No files found.
global.h
View file @
6c2ee258
...
...
@@ -40,6 +40,7 @@
#define CFG_SECTION_ROLLBACKLIST "all/rolllist"
#define CFG_SECTION_XMLHOST "xml/host"
#define CFG_SECTION_XMLDOWNLOADHOST "xml/downloadhost"
#define CFG_SECTION_XMLFILENAME "all/xmlfilename"
//FMCONPON return error
...
...
refreshxmlwork.cpp
View file @
6c2ee258
...
...
@@ -59,7 +59,16 @@ bool RefreshXmlWork::getrefreshxml(QString &host, QString &downloadxmlpath, QStr
bool
RefreshXmlWork
::
downloadxml
(
const
QString
&
path
,
const
QString
&
md5
,
QString
&
localfilename
)
{
localfilename
=
QString
(
XML_FILENAME
)
+
md5
+
XML_END
;
if
(
!
downloadfile
(
path
,
localfilename
))
QString
downpath
=
Tool
::
ReadCfg
(
QString
(
CFG_SECTION_XMLDOWNLOADHOST
),
""
).
toString
();
if
(
downpath
.
isEmpty
())
{
QLOG_WARN
()
<<
"download path error : "
<<
downpath
;
return
false
;
}
downpath
+=
localfilename
;
if
(
!
downloadfile
(
downpath
,
localfilename
))
{
QLOG_WARN
()
<<
"downloadfile error"
;
return
false
;
...
...
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