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
d7099574
Commit
d7099574
authored
Jun 15, 2018
by
wuyang.zou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug: 为客户[服务端存在多多用户时,pos外卖插件程序启动不了] 完善新增功能【新增指定pos 登陆用户名的配置功能:实现将程序以配置的用户下启动】
parent
2701981e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
154 additions
and
14 deletions
+154
-14
fmscupd/fmcontrol.cpp
+118
-13
fmscupd/fmdefine.h
+3
-0
fmscupd/fmscupd.pro
+4
-1
fmscupd/fmtools.cpp
+11
-0
fmscupd/fmtools.h
+14
-0
fmscupd/update.ini
+4
-0
No files found.
fmscupd/fmcontrol.cpp
View file @
d7099574
This diff is collapsed.
Click to expand it.
fmscupd/fmdefine.h
View file @
d7099574
...
...
@@ -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"
...
...
fmscupd/fmscupd.pro
View file @
d7099574
...
...
@@ -51,5 +51,8 @@ else {
win32
{
LIBS
+=
-
luser32
-
lAdvapi32
LIBS
+=
-
luser32
-
lAdvapi32
-
lWtsapi32
}
fmscupd/fmtools.cpp
View file @
d7099574
...
...
@@ -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
();
...
...
fmscupd/fmtools.h
View file @
d7099574
...
...
@@ -16,6 +16,20 @@ public:
* 返回:程序列表(带相对路径)
* */
QStringList
GetKeepExes
();
/* 功能:获取收银机器(pos)是否开启<POS登陆用户名>功能
* 参数:NULL
* 返回: 是否开启<POS登陆用户名>功能
* */
bool
GetPosLoginUserEnable
();
/* 功能:获取收银机器(pos) POS登陆用户名
* 参数:NULL
* 返回:POS登陆机器的用户名
* */
QString
GetPosLoginUserName
();
/* 功能:获取软件版本信息
* 参数:NULL
* 返回:软件版本
...
...
fmscupd/update.ini
View file @
d7099574
...
...
@@ -19,3 +19,7 @@ timeout1=20
;守护的程序列表
[ExeList]
value
=
[PosLoginUserInfo]
bEnable
=
FALSE
sLoginUserName
=
wuyang.zou
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