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
cd2b790f
Commit
cd2b790f
authored
Nov 20, 2017
by
guanghui.cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增接口查询,支付、退款接口更新
parent
f58de8d8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
0 deletions
+34
-0
fmp_epay.cpp
+10
-0
fmp_epay.h
+2
-0
fmp_epay_def.h
+12
-0
fmp_epay_i.h
+3
-0
fmp_epay_p.cpp
+0
-0
fmp_epay_p.h
+7
-0
No files found.
fmp_epay.cpp
View file @
cd2b790f
...
@@ -78,3 +78,13 @@ QByteArray FMPePay::DockRefundRespond()
...
@@ -78,3 +78,13 @@ QByteArray FMPePay::DockRefundRespond()
{
{
return
d_func
()
->
DockRefundRespond
();
return
d_func
()
->
DockRefundRespond
();
}
}
void
FMPePay
::
DockQueryRequest
(
const
QByteArray
&
json
)
{
d_func
()
->
DockQueryRequest
(
json
);
}
QByteArray
FMPePay
::
DockQueryRespond
()
{
return
d_func
()
->
DockQueryRespond
();
}
fmp_epay.h
View file @
cd2b790f
...
@@ -28,6 +28,8 @@ public:
...
@@ -28,6 +28,8 @@ public:
void
DockRefundRequest
(
const
QByteArray
&
json
);
void
DockRefundRequest
(
const
QByteArray
&
json
);
QByteArray
DockRefundRespond
();
QByteArray
DockRefundRespond
();
void
DockQueryRequest
(
const
QByteArray
&
json
);
QByteArray
DockQueryRespond
();
protected
slots
:
protected
slots
:
void
InitService
();
void
InitService
();
...
...
fmp_epay_def.h
View file @
cd2b790f
...
@@ -19,6 +19,18 @@
...
@@ -19,6 +19,18 @@
#define FMP_EPAY_ANIMATION "needanimation"
#define FMP_EPAY_ANIMATION "needanimation"
#define FMP_EPAY_TIMEOUT "timeout"
#define FMP_EPAY_TIMEOUT "timeout"
//支付请求
#define FMP_EPAY_POS_VER "pos_ver"
#define FMP_EPAY_FMCMD "fm_cmd"
#define FMP_EPAY_ORDER_AMOUNT "order_amount"
#define FMP_EPAY_PAID_AMOUNT "paid_amount"
#define FMP_EPAY_UNDIS_AMOUNT "undis_amount"
#define FMP_EPAY_BARCODE "barcode"
#define FMP_EPAY_PRODUCTS "products"
#define FMP_EPAY_CONSUME_NUM "consume_num"
#define FMP_EPAY_PRICE "price"
#define FMP_EPAY_PID "pid"
//
//
#define FMP_JKEY_POS_TRANSID "trans_id"
#define FMP_JKEY_POS_TRANSID "trans_id"
#define FMP_JKEY_FM_ORDERID "fm_id"
#define FMP_JKEY_FM_ORDERID "fm_id"
...
...
fmp_epay_i.h
View file @
cd2b790f
...
@@ -28,6 +28,9 @@ public:
...
@@ -28,6 +28,9 @@ public:
virtual
void
DockRefundRequest
(
const
QByteArray
&
json
)
=
0
;
virtual
void
DockRefundRequest
(
const
QByteArray
&
json
)
=
0
;
virtual
QByteArray
DockRefundRespond
()
=
0
;
virtual
QByteArray
DockRefundRespond
()
=
0
;
virtual
void
DockQueryRequest
(
const
QByteArray
&
json
)
=
0
;
virtual
QByteArray
DockQueryRespond
()
=
0
;
signals
:
signals
:
void
TriggerInit
();
void
TriggerInit
();
void
TriggerUninit
();
void
TriggerUninit
();
...
...
fmp_epay_p.cpp
View file @
cd2b790f
This diff is collapsed.
Click to expand it.
fmp_epay_p.h
View file @
cd2b790f
...
@@ -31,6 +31,8 @@ public:
...
@@ -31,6 +31,8 @@ public:
void
ControlRefundJson
(
const
QJsonObject
&
trans
);
void
ControlRefundJson
(
const
QJsonObject
&
trans
);
void
ControlQueryJson
();
void
GetCheckMode
(
QString
sum
);
void
GetCheckMode
(
QString
sum
);
void
GetMode
();
void
GetMode
();
...
@@ -43,6 +45,9 @@ public:
...
@@ -43,6 +45,9 @@ public:
void
DockRefundRequest
(
const
QByteArray
&
json
);
void
DockRefundRequest
(
const
QByteArray
&
json
);
QByteArray
DockRefundRespond
();
QByteArray
DockRefundRespond
();
void
DockQueryRequest
(
const
QByteArray
&
json
);
QByteArray
DockQueryRespond
();
private
:
private
:
void
ControlReverseJson
();
void
ControlReverseJson
();
...
@@ -52,6 +57,8 @@ private:
...
@@ -52,6 +57,8 @@ private:
bool
GetPayJson
(
const
QString
&
sum
,
const
QString
&
code
);
bool
GetPayJson
(
const
QString
&
sum
,
const
QString
&
code
);
bool
GetQueryJson
();
bool
HttpPost
(
QJsonObject
&
outjson
,
QJsonObject
json
,
QString
&
error
,
int
timeout
=
60
);
bool
HttpPost
(
QJsonObject
&
outjson
,
QJsonObject
json
,
QString
&
error
,
int
timeout
=
60
);
bool
CheckReturnJson
(
QByteArray
data
,
QJsonObject
&
returnjson
);
bool
CheckReturnJson
(
QByteArray
data
,
QJsonObject
&
returnjson
);
...
...
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