Commit 893345dd by 刘帅

修正一处字串转换引起的崩溃,添加红宝石、友琪便利商户

parent 2701981e
......@@ -148,7 +148,7 @@ bool FmControl::_LaunchProcess(const QString &exePath, QString& error)
}
// 在复制的用户Session下执行应用程序,创建进程。
if (CreateProcessAsUser(hDuplicatedToken,
exePath.toStdWString().c_str(), NULL, NULL, NULL, FALSE,
reinterpret_cast<const wchar_t*>(exePath.utf16()), NULL, NULL, NULL, FALSE,
NORMAL_PRIORITY_CLASS | CREATE_NEW_CONSOLE | CREATE_UNICODE_ENVIRONMENT,
lpEnvironment, NULL, &si, &pi) == FALSE)
{
......
......@@ -10,9 +10,11 @@ CONFIG += c++11
DEFINES += QUAZIP_STATIC
#DEFINES += SHIQIJIA
#DEFINES += SHAN_LIN
DEFINES += BALIBEITIAN
#DEFINES += BALIBEITIAN
#DEFINES += AI_SEN
#DEFINES += TODAY
#DEFINES += RUBY
DEFINES += YOUQI
TARGET = fmscupd
CONFIG += windows
......
......@@ -153,6 +153,18 @@ FmTools::FmTools()
m_keyPosId = "pos_no";
#endif
#ifdef RUBY
m_partnerId = "1774";
m_siIniPath = QCoreApplication::applicationDirPath() + "/user.ini";
m_keyStoreId = "storeInfo/storeId";
m_keyPosId = "storeInfo/posId";
#endif
#ifdef YOUQI
m_partnerId = "1758";
m_siIniPath = QCoreApplication::applicationDirPath() + "/user.ini";
m_keyStoreId = "storeInfo/storeId";
m_keyPosId = "storeInfo/posId";
#endif
}
FmTools::~FmTools()
......
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