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
8221de2b
Commit
8221de2b
authored
Nov 20, 2017
by
guanghui.cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加支付查询接口
parent
5848c84d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
fmvipdispatcher.cpp
+14
-0
global.h
+1
-0
No files found.
fmvipdispatcher.cpp
View file @
8221de2b
...
...
@@ -71,6 +71,20 @@ void FMVipDispatcher::doTask(const QByteArray &reqData, QByteArray &rspData)
}
break
;
}
case
FM_QR_QUERY
:
{
if
(
_ctx
)
{
ctkServiceReference
ref
=
_ctx
->
getServiceReference
<
FMPePayInterface
>
();
FMPePayInterface
*
epay
=
_ctx
->
getService
<
FMPePayInterface
>
(
ref
);
epay
->
DockQueryRequest
(
reqData
);
epay
->
StartService
();
rspData
=
epay
->
DockQueryRespond
();
epay
->
StopService
();
}
else
{
rspData
=
QString
::
fromLocal8Bit
(
"{
\"
msg:
\"
:
\"
查询服务不可用
\"
}"
).
toUtf8
();
}
break
;
}
case
FM_Refund
:
{
QString
fm_id
=
jsonObj
[
PosProps
.
Transaction
].
toObject
()[
PosProps
.
Fm_id
].
toString
();
QString
transId
=
jsonObj
[
PosProps
.
Transaction
].
toObject
()[
PosProps
.
TransId
].
toString
();
...
...
global.h
View file @
8221de2b
...
...
@@ -26,6 +26,7 @@ enum FM_TYPE {
FM_Coupon
=
1009
,
FM_Fund
,
FM_Order_Revoke
,
FM_QR_QUERY
=
10030
,
FM_QR_Pay
=
10031
,
FM_QR_Refund
=
10041
,
FM_Refund_Pay
,
...
...
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