Commit adc3c3ef by 刘帅

增加牛诗商户,使用服务形式

parent 27a24851
...@@ -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
......
...@@ -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()
......
...@@ -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();
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment