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
451f4ce6
Commit
451f4ce6
authored
Aug 15, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 从POS发来的请求中取trans_id。
parent
99163eb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
fmp_epay_p.cpp
+4
-2
No files found.
fmp_epay_p.cpp
View file @
451f4ce6
...
...
@@ -681,7 +681,8 @@ bool FMPePayPrivate::GetPayJson(const QString& sum, const QString& code)
_docked_request
.
insert
(
FMP_EPAY_PARTNERID
,
q
->
_partner_id
.
toInt
());
_docked_request
.
insert
(
FMP_EPAY_CLIENTREQCOUNT
,
(
int
)((
++
s_ClientReqCount
)
%=
10000000
));
_docked_request
.
insert
(
FMP_EPAY_TRANSID
,
QDateTime
::
currentDateTime
().
toString
(
"yyyyMMddhhmmsszzz"
));
// _docked_request.insert( FMP_EPAY_TRANSID, QDateTime::currentDateTime().toString("yyyyMMddhhmmsszzz"));
_docked_request
.
insert
(
FMP_EPAY_TRANSID
,
_origin_request
[
FMP_EPAY_TRANSID
].
toString
());
_docked_request
.
insert
(
FMP_EPAY_TRANSTRACTION
,
transactionarry
);
return
true
;
...
...
@@ -713,7 +714,8 @@ bool FMPePayPrivate::GetRefundJson(const QJsonObject &trans)
else
{
transaction
.
insert
(
FMP_EPAY_REFUND_TRANSTRACTION_AMOUNT
,
(
int
)(
trans
[
FMP_JKEY_REFUND_AMOUNT
].
toDouble
()
+
0.005
));
}
_docked_request
.
insert
(
FMP_EPAY_TRANSID
,
QDateTime
::
currentDateTime
().
toString
(
"yyyyMMddhhmmsszzz"
));
// _docked_request.insert(FMP_EPAY_TRANSID, QDateTime::currentDateTime().toString("yyyyMMddhhmmsszzz"));
_docked_request
.
insert
(
FMP_EPAY_TRANSID
,
_origin_request
[
FMP_EPAY_TRANSID
].
toString
());
}
else
{
transaction
.
insert
(
FMP_EPAY_REFUND_TRANSTRACTION_EBCODE
,
trans
[
FMP_JKEY_PAY_EBCODE
]);
...
...
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