Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_epay
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
zhenfei.zhang
fmp_epay
Commits
3986100b
Commit
3986100b
authored
May 13, 2019
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改一处配置读取方式
parent
e65e6b51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
fmp_epay_p.cpp
+5
-2
No files found.
fmp_epay_p.cpp
View file @
3986100b
...
...
@@ -101,13 +101,16 @@ FMPePayPrivate::FMPePayPrivate(FMPePay *parent)
QSettings
*
settings
=
new
QSettings
(
QString
(
"%1/FreemudPOS.ini"
).
arg
(
apppath
),
QSettings
::
IniFormat
);
q
->
_url
=
settings
->
value
(
FMP_INIKEY_EPAYURL
).
toString
();
q
->
_partner_id
=
settings
->
value
(
FMP_INIKEY_LOGINPARTNERID
).
toString
();
q
->
_time_out
=
settings
->
value
(
FMP_INIKEY_EPAYTIMEOUT
).
toInt
();
q
->
_time_out
=
(
q
->
_time_out
>
60
?
q
->
_time_out
:
60
);
q
->
_store_id
=
settings
->
value
(
FMP_INIKEY_LOGINSTOREID
).
toString
();
q
->
_station_id
=
settings
->
value
(
FMP_INIKEY_LOGINPOSID
).
toString
();
q
->
_operator_id
=
settings
->
value
(
FMP_INIKEY_LOGINCASHIER
).
toString
();
delete
settings
;
QSettings
urlSettings
(
QString
(
"%1/server_url.ini"
).
arg
(
apppath
),
QSettings
::
IniFormat
);
q
->
_time_out
=
urlSettings
.
value
(
FMP_INIKEY_EPAYTIMEOUT
).
toInt
();
q
->
_time_out
=
(
q
->
_time_out
>
60
?
q
->
_time_out
:
60
);
// _setting = FMP::GetService<FMPSettingsInterface>();
// q->_url = _setting->GetString(FMP_INIKEY_EPAYURL);
// q->_partner_id = _setting->GetString(FMP_INIKEY_LOGINPARTNERID);
...
...
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