Commit d7099574 by wuyang.zou

fix bug: 为客户[服务端存在多多用户时,pos外卖插件程序启动不了] 完善新增功能【新增指定pos 登陆用户名的配置功能:实现将程序以配置的用户下启动】

parent 2701981e
......@@ -3,6 +3,9 @@
#define INIFILE_NAME "update.ini"
#define INIPATH_EXELIST "ExeList/value"
#define INIPATH_POSLOGINUSERENABLE "PosLoginUserInfo/bEnable"
#define INIPATH_POSLOGINUSERNAME "PosLoginUserInfo/sLoginUserName"
#define INIPATH_UPDATE_URL "ServerUrl/update"
#define INIPATH_REPORT_URL "ServerUrl/report"
#define INIPATH_VERSION "SoftInfo/version"
......
......@@ -51,5 +51,8 @@ else {
win32 {
LIBS += -luser32 -lAdvapi32
LIBS += -luser32 -lAdvapi32 -lWtsapi32
}
......@@ -169,6 +169,17 @@ QStringList FmTools::GetKeepExes()
return m_config->value(INIPATH_EXELIST).toStringList();
}
bool FmTools::GetPosLoginUserEnable()
{
return m_config->value(INIPATH_POSLOGINUSERENABLE).toBool();
}
QString FmTools::GetPosLoginUserName()
{
return m_config->value(INIPATH_POSLOGINUSERNAME).toString();
}
QString FmTools::GetVersion()
{
return m_config->value(INIPATH_VERSION).toString();
......
......@@ -16,6 +16,20 @@ public:
* 返回:程序列表(带相对路径)
* */
QStringList GetKeepExes();
/* 功能:获取收银机器(pos)是否开启<POS登陆用户名>功能
* 参数:NULL
* 返回: 是否开启<POS登陆用户名>功能
* */
bool GetPosLoginUserEnable();
/* 功能:获取收银机器(pos) POS登陆用户名
* 参数:NULL
* 返回:POS登陆机器的用户名
* */
QString GetPosLoginUserName();
/* 功能:获取软件版本信息
* 参数:NULL
* 返回:软件版本
......
......@@ -19,3 +19,7 @@ timeout1=20
;守护的程序列表
[ExeList]
value=
[PosLoginUserInfo]
bEnable=FALSE
sLoginUserName=wuyang.zou
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