Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_vip
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_vip
Commits
4e9ab768
Commit
4e9ab768
authored
Jul 31, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. POS传pay_transId字段时调用服务端退单接口。
parent
46916909
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
fmvipdispatcher.cpp
+2
-1
task/taskothers.cpp
+5
-1
No files found.
fmvipdispatcher.cpp
View file @
4e9ab768
...
...
@@ -72,7 +72,8 @@ void FMVipDispatcher::doTask(const QByteArray &reqData, QByteArray &rspData)
}
case
FM_Refund
:
{
QString
fm_id
=
jsonObj
[
PosProps
.
Transaction
].
toObject
()[
PosProps
.
Fm_id
].
toString
();
if
(
fm_id
!=
""
)
{
QString
fm_transId
=
jsonObj
[
PosProps
.
Transaction
].
toObject
()[
PosProps
.
Fm_transId
].
toString
();
if
(
fm_id
!=
""
||
fm_transId
!=
""
)
{
TaskRefundOrder
taskRefundOrder
(
jsonObj
);
rspData
=
taskRefundOrder
.
doTask
();
}
else
{
...
...
task/taskothers.cpp
View file @
4e9ab768
...
...
@@ -62,7 +62,11 @@ TaskRefundOrder::TaskRefundOrder(QJsonObject &jsonObj, QObject *parent)
void
TaskRefundOrder
::
packageServerReq
()
{
QJsonObject
transData
;
transData
[
ServerProps
(
PosProps
.
Fm_id
)]
=
getPosJsonValue
(
PosProps
.
Fm_id
);
QString
fm_id
=
getPosJsonValue
(
PosProps
.
Fm_id
).
toString
();
if
(
fm_id
==
""
)
{
fm_id
=
getPosJsonValue
(
PosProps
.
Fm_transId
).
toString
();
}
transData
[
ServerProps
(
PosProps
.
Fm_id
)]
=
fm_id
;
serverReqJsonObj
[
"data"
]
=
transData
;
}
...
...
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