Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
蒋勇
zhichan
Commits
6f42a361
Commit
6f42a361
authored
Oct 20, 2020
by
任晓松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取支付记录
parent
9649d4be
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
1 deletions
+60
-1
center-channel/app/base/api/impl/payment/paymentApi.js
+3
-0
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+7
-0
center-channel/app/config/routes/api.js
+1
-1
center-channel/app/front/entry/public/apidoc/paymentDesc/payment.md
+49
-0
No files found.
center-channel/app/base/api/impl/payment/paymentApi.js
View file @
6f42a361
...
...
@@ -45,6 +45,9 @@ class PaymentAPI extends WEBBase {
case
"queryOrder"
:
//通联支付查询
opResult
=
await
this
.
utilsOrderSve
.
queryOrder
(
pobj
,
pobj
.
actionBody
);
break
;
case
"getPayRecords"
:
//获取支付记录
opResult
=
await
this
.
utilsOrderSve
.
getPayRecords
(
pobj
,
pobj
.
actionBody
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
...
...
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
6f42a361
...
...
@@ -1218,5 +1218,12 @@ class UtilsOrderService extends AppServiceBase {
}
return
system
.
getResultSuccess
(
result
)
}
//获取支付记录
async
getPayRecords
(
pobj
,
actionBody
){
let
url
=
this
.
centerOrderUrl
+
'opaction/opPayOrder/getPayRecords'
;
let
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
return
result
;
}
}
module
.
exports
=
UtilsOrderService
;
center-channel/app/config/routes/api.js
View file @
6f42a361
...
...
@@ -282,7 +282,7 @@ module.exports = function (app) {
"needBatchUpload"
,
"serviceSubmitOption"
,
"submitWangwenSolution"
,
"closeNeed"
,
"recordLog"
,
"recordLogList"
,
"foodServiceSubmitOption"
,
"submitFoodSolution"
,
"foodCloseNeed"
,
"foodRecordLog"
,
"foodRecordLogList"
,
"getParamsFor360"
,
"addOrderWeb"
,
"getParamsFor360"
,
"addOrderWeb"
,
"getPayRecords"
,
];
if
(
lst
.
indexOf
(
req
.
body
.
actionType
)
>=
0
)
{
...
...
center-channel/app/front/entry/public/apidoc/paymentDesc/payment.md
View file @
6f42a361
...
...
@@ -3,6 +3,7 @@
1.
[
pc端订单支付二维码生成
](
#getOrderQrCode
)
1.
[
pc端查询订单是否支付成功
](
#getOrderQrCode
)
1.
[
获取H5支付链接
](
#getH5PayUrl
)
1.
[
获取支付记录
](
#getPayRecords
)
## **<a name="getOrderQrCode"> pc端订单支付二维码生成</a>**
[
返回到目录
](
#menu
)
...
...
@@ -86,3 +87,51 @@
}
```
## **<a name="getPayRecords"> 获取支付记录</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/payment/paymentApi/springBoard
]
#### 参数格式 `JSON`人
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:getPayRecords
```
javascript
{}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
[
{
"orderNo"
:
"OT38202009210844xFni"
,
//订单号
"productName"
:
"公司注册(北京市)"
,
//产品名称
"totalSum"
:
"0.01"
,
//金额
"directionType"
:
"sr"
,
//凭单类型,"sr": "收","zc": "支"
"payTime"
:
"2020-09-21T00:44:27.000Z"
//支付时间
},
{
"orderNo"
:
"OT382020092111563TOs"
,
"productName"
:
"公司注册(北京市)"
,
"totalSum"
:
"0.01"
,
"directionType"
:
"sr"
,
"payTime"
:
"2020-09-21T03:57:09.000Z"
},
{
"orderNo"
:
"OT382020092114549S55"
,
"productName"
:
"公司注册(北京市)"
,
"totalSum"
:
"0.01"
,
"directionType"
:
"sr"
,
"payTime"
:
"2020-09-21T06:55:07.000Z"
}
],
"requestId"
:
"57144de54ea54e3abbaedd1512c34950"
}
```
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