Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FMDbMonitor_linux
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
guanghui.cui
FMDbMonitor_linux
Commits
61a4d940
Commit
61a4d940
authored
Sep 28, 2017
by
guanghui.cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置文件添加‘商户从平台拿到订单总额比例’字段
parent
90d893ca
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
bin/monitor.ini
+4
-0
pos_bft/OrderInfo.cpp
+5
-0
pos_bft/OrderInfo.h
+1
-0
No files found.
bin/monitor.ini
View file @
61a4d940
...
...
@@ -12,8 +12,12 @@ user=root
password
=
123
[SYS]
#pos type
pos
=
bifengtang
#pos server ip
serverip
=
192.168.0.102
#商户从平台拿到百分比(总订单金额)
percent
=
90
#守护进程脚本
[SH]
...
...
pos_bft/OrderInfo.cpp
View file @
61a4d940
...
...
@@ -30,6 +30,11 @@ COrderInfo::COrderInfo()
strMonitorDeamon
=
ZIni
::
readString
(
"SH"
,
"monitor"
,
""
,
strIniPath
.
c_str
());
strTakeoutDeamon
=
ZIni
::
readString
(
"SH"
,
"takeout"
,
""
,
strIniPath
.
c_str
());
_percent
=
ZIni
::
readInt
(
"SYS"
,
"percent"
,
0
,
strIniPath
.
c_str
());
if
(
_percent
<=
0
){
LOG
(
ERROR
)
<<
"get percent failed,percent:"
<<
_percent
;
}
LOG
(
INFO
)
<<
"percent is:"
<<
_percent
;
}
pthread_mutex_init
(
&
mutex
,
NULL
);
//初始化互斥锁
}
...
...
pos_bft/OrderInfo.h
View file @
61a4d940
...
...
@@ -85,6 +85,7 @@ private:
char
*
_tempLatin1
;
//utf8转换为Latin1后,存放在此变量中
std
::
string
strMonitorDeamon
;
//monitor守护进程脚本文件路径
std
::
string
strTakeoutDeamon
;
//takeout守护进程脚本文件路径
int
_percent
;
//商户从平台拿到百分比(总订单金额)
};
#endif
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