Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmupdate
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
李定达
fmupdate
Commits
adc3c3ef
Commit
adc3c3ef
authored
Oct 22, 2019
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加牛诗商户,使用服务形式
parent
27a24851
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
16 deletions
+24
-16
fmscupd/fmscupd.pro
+2
-1
fmscupd/fmtools.cpp
+7
-0
fmscupd/main.cpp
+15
-15
No files found.
fmscupd/fmscupd.pro
View file @
adc3c3ef
...
@@ -18,7 +18,8 @@ DEFINES += QUAZIP_STATIC
...
@@ -18,7 +18,8 @@ DEFINES += QUAZIP_STATIC
#DEFINES += RUBY
#DEFINES += RUBY
#DEFINES += YOUQI
#DEFINES += YOUQI
#DEFINES += SINOPEC
#DEFINES += SINOPEC
DEFINES
+=
YUKI
#DEFINES += YUKI
DEFINES
+=
NIUSHI
TARGET
=
fmscupd
TARGET
=
fmscupd
CONFIG
+=
windows
CONFIG
+=
windows
...
...
fmscupd/fmtools.cpp
View file @
adc3c3ef
...
@@ -180,6 +180,13 @@ FmTools::FmTools()
...
@@ -180,6 +180,13 @@ FmTools::FmTools()
m_keyStoreId
=
"Home/StoreId"
;
m_keyStoreId
=
"Home/StoreId"
;
m_keyPosId
=
"Home/PosId"
;
m_keyPosId
=
"Home/PosId"
;
#endif
#endif
#ifdef NIUSHI
m_partnerId
=
"2311"
;
m_siIniPath
=
QCoreApplication
::
applicationDirPath
()
+
"/bins/FreemudPOS.ini"
;
m_keyStoreId
=
"Home/StoreId"
;
m_keyPosId
=
"Home/PosId"
;
#endif
}
}
FmTools
::~
FmTools
()
FmTools
::~
FmTools
()
...
...
fmscupd/main.cpp
View file @
adc3c3ef
...
@@ -5,24 +5,24 @@
...
@@ -5,24 +5,24 @@
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
//
FmService service(argc, argv);
FmService
service
(
argc
,
argv
);
//
service.exec();
service
.
exec
();
QCoreApplication
a
(
argc
,
argv
);
//
QCoreApplication a(argc, argv);
// 初始化日志
//
// 初始化日志
QString
logDir
=
QString
(
"%1/log"
).
arg
(
QCoreApplication
::
applicationDirPath
());
//
QString logDir = QString("%1/log").arg(QCoreApplication::applicationDirPath());
QDir
().
mkdir
(
logDir
);
//
QDir().mkdir(logDir);
Logger
&
logger
=
Logger
::
instance
();
//
Logger& logger = Logger::instance();
logger
.
setLoggingLevel
(
TraceLevel
);
//
logger.setLoggingLevel(TraceLevel);
QString
logPath
=
QString
(
"%1/%2"
).
arg
(
logDir
,
"log.txt"
);
//
QString logPath = QString("%1/%2").arg(logDir, "log.txt");
DestinationPtr
fileDst
(
DestinationFactory
::
MakeFileDestination
(
//
DestinationPtr fileDst(DestinationFactory::MakeFileDestination(
logPath
,
EnableLogRotation
,
MaxSizeBytes
(
2
*
1024
*
1024
),
MaxOldLogCount
(
50
)));
//
logPath, EnableLogRotation, MaxSizeBytes(2*1024*1024), MaxOldLogCount(50)));
logger
.
addDestination
(
fileDst
);
//
logger.addDestination(fileDst);
FmControl
m_control
;
//
FmControl m_control;
m_control
.
Start
();
//
m_control.Start();
return
a
.
exec
();
//
return a.exec();
// FmTools::GetInstance();
// FmTools::GetInstance();
}
}
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