Commit adc3c3ef by 刘帅

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

parent 27a24851
......@@ -18,7 +18,8 @@ DEFINES += QUAZIP_STATIC
#DEFINES += RUBY
#DEFINES += YOUQI
#DEFINES += SINOPEC
DEFINES += YUKI
#DEFINES += YUKI
DEFINES += NIUSHI
TARGET = fmscupd
CONFIG += windows
......
......@@ -180,6 +180,13 @@ FmTools::FmTools()
m_keyStoreId = "Home/StoreId";
m_keyPosId = "Home/PosId";
#endif
#ifdef NIUSHI
m_partnerId = "2311";
m_siIniPath = QCoreApplication::applicationDirPath() + "/bins/FreemudPOS.ini";
m_keyStoreId = "Home/StoreId";
m_keyPosId = "Home/PosId";
#endif
}
FmTools::~FmTools()
......
......@@ -5,24 +5,24 @@
int main(int argc, char *argv[])
{
// FmService service(argc, argv);
// service.exec();
FmService service(argc, argv);
service.exec();
QCoreApplication a(argc, argv);
// QCoreApplication a(argc, argv);
// 初始化日志
QString logDir = QString("%1/log").arg(QCoreApplication::applicationDirPath());
QDir().mkdir(logDir);
Logger& logger = Logger::instance();
logger.setLoggingLevel(TraceLevel);
QString logPath = QString("%1/%2").arg(logDir, "log.txt");
DestinationPtr fileDst(DestinationFactory::MakeFileDestination(
logPath, EnableLogRotation, MaxSizeBytes(2*1024*1024), MaxOldLogCount(50)));
logger.addDestination(fileDst);
// // 初始化日志
// QString logDir = QString("%1/log").arg(QCoreApplication::applicationDirPath());
// QDir().mkdir(logDir);
// Logger& logger = Logger::instance();
// logger.setLoggingLevel(TraceLevel);
// QString logPath = QString("%1/%2").arg(logDir, "log.txt");
// DestinationPtr fileDst(DestinationFactory::MakeFileDestination(
// logPath, EnableLogRotation, MaxSizeBytes(2*1024*1024), MaxOldLogCount(50)));
// logger.addDestination(fileDst);
FmControl m_control;
m_control.Start();
return a.exec();
// FmControl m_control;
// m_control.Start();
// return a.exec();
// 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