Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FmTakeaway
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
shangshang.dai
FmTakeaway
Commits
8278d2d5
Commit
8278d2d5
authored
Apr 24, 2017
by
ss.dai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增配置门店编号前缀为pos_as_
parent
3c577c4f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
2 deletions
+28
-2
fmTakeaway/Control/flowControl.cpp
+1
-1
fmTakeaway/DTools/configManger.cpp
+10
-0
fmTakeaway/DTools/configManger.h
+11
-0
run/config.ini
+6
-1
No files found.
fmTakeaway/Control/flowControl.cpp
View file @
8278d2d5
...
...
@@ -57,7 +57,7 @@ bool FlowControl::_Login()
QTimer
::
singleShot
(
VALUE_RELOGINTIME
,
this
,
&
FlowControl
::
_Login
);
return
false
;
}
sendJson
=
DataManger
::
GetInstance
().
GetLoginData
(
m_storeId
,
SERVER_PASSWORD
,
m_posId
,
m_cashierId
);
sendJson
=
DataManger
::
GetInstance
().
GetLoginData
(
ConfigManger
::
GetInstance
().
GetPrefix
()
+
m_storeId
,
ConfigManger
::
GetInstance
().
GetPassword
()
,
m_posId
,
m_cashierId
);
emit
showAlert
(
AlertForm
::
LOADING
,
"正在登录......"
);
QLOG_INFO
()
<<
QString
(
"[---login---][requestData:%1]"
).
arg
(
_GetJsonStr
(
sendJson
));
...
...
fmTakeaway/DTools/configManger.cpp
View file @
8278d2d5
...
...
@@ -76,5 +76,15 @@ int ConfigManger::GetListenPort()
return
m_config
->
value
(
INI_LISTENPORT
,
34953
).
toInt
();
}
QString
ConfigManger
::
GetPrefix
()
{
return
m_config
->
value
(
"Client/prefix"
,
"pos_as_"
).
toString
();
}
QString
ConfigManger
::
GetPassword
()
{
return
m_config
->
value
(
"Client/password"
,
"posoperator@freemud.cn"
).
toString
();
}
fmTakeaway/DTools/configManger.h
View file @
8278d2d5
...
...
@@ -70,6 +70,17 @@ public:
* 返回:监听端口
* */
int
GetListenPort
();
/* 功能:获取商户前缀
* 参数:NULL
* 返回:监听端口
* */
QString
GetPrefix
();
/* 功能:获取登录密码
* 参数:NULL
* 返回:监听端口
* */
QString
GetPassword
();
private
:
ConfigManger
();
...
...
run/config.ini
View file @
8278d2d5
[FmServer]
url
=
http://w
aimaiapi.freemudorder.com
/api
url
=
http://w
mpos.sandload.cn
/api
[RefundListener]
port
=
34953
...
...
@@ -13,3 +13,7 @@ bdwm=003|百度外卖
jdwm
=
004|京东到家
mtwm
=
005|美团外卖
fmwd
=
006|非码微店
[Client]
prefix
=
pos_as_
password
=
posoperator@freemud.cn
\ No newline at end of file
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