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
6dde410c
Commit
6dde410c
authored
Apr 10, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
cc7326d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
31 deletions
+35
-31
center-app/app/base/api/impl/payment/aliPayment.js
+30
-29
center-app/app/base/db/metadata/apps/platform.js
+4
-1
center-app/app/base/service/impl/utilsSve/utilsAlibankSve.js
+1
-1
No files found.
center-app/app/base/api/impl/payment/aliPayment.js
View file @
6dde410c
...
...
@@ -15,35 +15,35 @@ class AliPayment extends APIBase {
return
result
;
}
async
test
(
pobj
,
qobj
,
req
)
{
var
pobj
=
{
appInfo
:
{
uapp_id
:
22
},
actionBody
:
{
total_fee
:
0.01
,
order_num
:
"111222"
,
body_desc
:
"标题描述1"
}
};
var
actionBody
=
{
"discount"
:
"0.00"
,
"payment_type"
:
"1"
,
"trade_no"
:
"2020040922001436491431713713"
,
"subject"
:
"888"
,
"buyer_email"
:
"306***@qq.com"
,
"gmt_create"
:
"2020-04-09 19:57:49"
,
"notify_type"
:
"trade_status_sync"
,
"quantity"
:
"1"
,
"out_trade_no"
:
"OT36202004091957Ac7M"
,
"seller_id"
:
"2088001575712426"
,
"notify_time"
:
"2020-04-09 19:57:50"
,
"body"
:
"888"
,
"trade_status"
:
"TRADE_SUCCESS"
,
"is_total_fee_adjust"
:
"N"
,
"total_fee"
:
"0.01"
,
"gmt_payment"
:
"2020-04-09 19:57:49"
,
"seller_email"
:
"2022815690@qq.com"
,
"price"
:
"0.01"
,
"buyer_id"
:
"2088302381536494"
,
"notify_id"
:
"2020040900222195749036491455979554"
,
"use_coupon"
:
"N"
,
"sign_type"
:
"RSA"
,
"sign"
:
"fa3cGcw+Y5VoIruvWtwN3/XPScPbaeXJI9v+p3I82z3Im0PloxZ/wVallZPJnFGqSIbhp6L3Czajbrz2dzdDPiWCpatH7j7CCTYaIxPXBKAcYuBINfQN3UqHLY2Nq1LS1jfCKwMeufGOUqW1+2yDbQB8TFAAApbvHf63l2Cfgc4="
};
var
result
=
await
this
.
utilsAlibankSve
.
verifyPayReturnSign
(
pobj
,
actionBody
);
// var result = await this.utilsAlibankSve.getH5AliDingPayInfo(pobj, pobj.actionBody);
return
result
;
//
var pobj = { appInfo: { uapp_id: 22 }, actionBody: { total_fee: 0.01, order_num: "111222", body_desc: "标题描述1" } };
//
var actionBody = {
//
"discount": "0.00",
//
"payment_type": "1",
//
"trade_no": "2020040922001436491431713713",
//
"subject": "888",
//
"buyer_email": "306***@qq.com",
//
"gmt_create": "2020-04-09 19:57:49",
//
"notify_type": "trade_status_sync",
//
"quantity": "1",
//
"out_trade_no": "OT36202004091957Ac7M",
//
"seller_id": "2088001575712426",
//
"notify_time": "2020-04-09 19:57:50",
//
"body": "888",
//
"trade_status": "TRADE_SUCCESS",
//
"is_total_fee_adjust": "N",
//
"total_fee": "0.01",
//
"gmt_payment": "2020-04-09 19:57:49",
//
"seller_email": "2022815690@qq.com",
//
"price": "0.01",
//
"buyer_id": "2088302381536494",
//
"notify_id": "2020040900222195749036491455979554",
//
"use_coupon": "N",
//
"sign_type": "RSA",
//
"sign": "fa3cGcw+Y5VoIruvWtwN3/XPScPbaeXJI9v+p3I82z3Im0PloxZ/wVallZPJnFGqSIbhp6L3Czajbrz2dzdDPiWCpatH7j7CCTYaIxPXBKAcYuBINfQN3UqHLY2Nq1LS1jfCKwMeufGOUqW1+2yDbQB8TFAAApbvHf63l2Cfgc4="
//
};
//
var result = await this.utilsAlibankSve.verifyPayReturnSign(pobj, actionBody);
//
//
var result = await this.utilsAlibankSve.getH5AliDingPayInfo(pobj, pobj.actionBody);
//
return result;
}
}
module
.
exports
=
AliPayment
;
\ No newline at end of file
center-app/app/base/db/metadata/apps/platform.js
View file @
6dde410c
...
...
@@ -29,7 +29,10 @@ module.exports = {
//接口类型
"interface_type"
:
{
"bd"
:
"本地"
,
"yc"
:
"远程"
},
//操作类型
"op_type"
:
{
"addOrder"
:
"添加订单"
,
"pushOrder"
:
"推送订单"
,
"pushUpdateOrder"
:
"推送修改订单"
,
"pushUpdateOrderContacts"
:
"推送修改订单联系人"
,
"pushOrderBusiness"
:
"推送订单商机"
,
"pushOrderRefund"
:
"推送订单退款"
,
"pushNeedBusiness"
:
"推送需求商机"
,
"pushNeedNote"
:
"推送需求小计"
,
"pushCloseNeed"
:
"推送关闭需求"
,
"pushNeedSolution"
:
"推送需求方案"
,
"pushCloseNeedSolution"
:
"推送关闭需求方案"
,
"pushOpSolution"
:
"推送操作方案"
},
"op_type"
:
{
"addOrder"
:
"添加订单"
,
"pushOrder"
:
"推送订单"
,
"pushUpdateOrder"
:
"推送修改订单"
,
"pushUpdateOrderContacts"
:
"推送修改订单联系人"
,
"pushOrderBusiness"
:
"推送订单商机"
,
"pushOrderRefund"
:
"推送订单退款"
,
"pushNeedBusiness"
:
"推送需求商机"
,
"pushNeedNote"
:
"推送需求小计"
,
"pushCloseNeed"
:
"推送关闭需求"
,
"pushNeedSolution"
:
"推送需求方案"
,
"pushCloseNeedSolution"
:
"推送关闭需求方案"
,
"pushOpSolution"
:
"推送操作方案"
,
"createAliTmApply"
:
"创建阿里商标申请"
,
"closeAliTmApply"
:
"主动关闭阿里商标申请"
},
//---------
"logLevel"
:
{
"debug"
:
0
,
"info"
:
1
,
"warn"
:
2
,
"error"
:
3
,
"fatal"
:
4
},
...
...
center-app/app/base/service/impl/utilsSve/utilsAlibankSve.js
View file @
6dde410c
...
...
@@ -26,7 +26,7 @@ class utilsTlBankSve extends AppServiceBase {
partner
:
payParam
.
partner
,
_input_charset
:
"UTF-8"
,
notify_url
:
payParam
.
notify_url
,
app_id
:
pobj
.
appInfo
.
uapp_id
.
toString
(),
//可为空
app_id
:
pobj
.
appInfo
.
uapp_id
.
toString
()
+
"-"
+
actionBody
.
product_id
.
toString
()
,
//可为空
out_trade_no
:
actionBody
.
order_num
,
subject
:
actionBody
.
body_desc
,
body
:
actionBody
.
body_desc
,
...
...
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