Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
ctltool
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
李定达
ctltool
Commits
fdc12269
Commit
fdc12269
authored
Oct 29, 2020
by
OFFICE\dingda.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还原
parent
e17b1576
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
main.cpp
+21
-21
No files found.
main.cpp
View file @
fdc12269
...
...
@@ -1172,21 +1172,21 @@ int main(int argc, char *argv[])
QLOG_WARN
()
<<
"check zip file failed; begin creat zip file days : "
<<
days
<<
"--------------------"
;
//
Creatctl(ctlpath, days);
//
GetXmlAndFiles(days, QString("C:/np6data/newdata/temp"), ip);
Creatctl
(
ctlpath
,
days
);
GetXmlAndFiles
(
days
,
QString
(
"C:/np6data/newdata/temp"
),
ip
);
//
tmplist.append(mystoreid);
tmplist
.
append
(
mystoreid
);
//
QString error;
QString
error
;
//
if(RunBat(bat, tmplist, error) == false)
//
{
//
QLOG_ERROR() << "upload failed day : " << days << "; error : " << error;
//
}
//
else
//
{
//
QLOG_INFO() << "upload success day : " << days;
//
}
if
(
RunBat
(
bat
,
tmplist
,
error
)
==
false
)
{
QLOG_ERROR
()
<<
"upload failed day : "
<<
days
<<
"; error : "
<<
error
;
}
else
{
QLOG_INFO
()
<<
"upload success day : "
<<
days
;
}
QDir
daysdir
;
daysdir
.
mkdir
(
daysstr
);
...
...
@@ -1198,9 +1198,9 @@ int main(int argc, char *argv[])
}
//
CopyXMLToDir(QString("C:/np6data/newdata/temp"), QString("D:\\fm\\Gomax\\ctllist\\") + days);
//
CopyDirToDir(QString("C:/np6data/newdata/bak/")+mystoreid, QString("D:\\fm\\Gomax\\ctllist\\") + days);
//
CopyDirToDir(QString("C:/np6data/newdata/0000000"), QString("D:\\fm\\Gomax\\ctllist\\") + days);
CopyXMLToDir
(
QString
(
"C:/np6data/newdata/temp"
),
QString
(
"D:
\\
fm
\\
Gomax
\\
ctllist
\\
"
)
+
days
);
CopyDirToDir
(
QString
(
"C:/np6data/newdata/bak/"
)
+
mystoreid
,
QString
(
"D:
\\
fm
\\
Gomax
\\
ctllist
\\
"
)
+
days
);
CopyDirToDir
(
QString
(
"C:/np6data/newdata/0000000"
),
QString
(
"D:
\\
fm
\\
Gomax
\\
ctllist
\\
"
)
+
days
);
QLOG_WARN
()
<<
"***creat files begin check zip file in "
<<
QString
(
"D:
\\
fm
\\
Gomax
\\
ctllist
\\
"
)
+
days
<<
"--------"
;
...
...
@@ -1227,13 +1227,13 @@ int main(int argc, char *argv[])
continue
;
}
//
QLOG_INFO() << "begin upload : " << cvanos << "; file name : " << cvanos1;
QLOG_INFO
()
<<
"begin upload : "
<<
cvanos
<<
"; file name : "
<<
cvanos1
;
//
if(FMNetWork::HttpPut(ftp2ur+cvanos1, ftp2un, ftp2pw, cvanos) == false)
//
{
//
QLOG_ERROR() << "upload failed : " << cvanos;
//
continue;
//
}
if
(
FMNetWork
::
HttpPut
(
ftp2ur
+
cvanos1
,
ftp2un
,
ftp2pw
,
cvanos
)
==
false
)
{
QLOG_ERROR
()
<<
"upload failed : "
<<
cvanos
;
continue
;
}
QLOG_INFO
()
<<
"upload success --------------"
;
...
...
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