Commit 6dde410c by 宋毅

tj

parent cc7326d0
...@@ -15,35 +15,35 @@ class AliPayment extends APIBase { ...@@ -15,35 +15,35 @@ class AliPayment extends APIBase {
return result; return result;
} }
async test(pobj, qobj, req) { async test(pobj, qobj, req) {
var pobj = { appInfo: { uapp_id: 22 }, actionBody: { total_fee: 0.01, order_num: "111222", body_desc: "标题描述1" } }; // var pobj = { appInfo: { uapp_id: 22 }, actionBody: { total_fee: 0.01, order_num: "111222", body_desc: "标题描述1" } };
var actionBody = { // var actionBody = {
"discount": "0.00", // "discount": "0.00",
"payment_type": "1", // "payment_type": "1",
"trade_no": "2020040922001436491431713713", // "trade_no": "2020040922001436491431713713",
"subject": "888", // "subject": "888",
"buyer_email": "306***@qq.com", // "buyer_email": "306***@qq.com",
"gmt_create": "2020-04-09 19:57:49", // "gmt_create": "2020-04-09 19:57:49",
"notify_type": "trade_status_sync", // "notify_type": "trade_status_sync",
"quantity": "1", // "quantity": "1",
"out_trade_no": "OT36202004091957Ac7M", // "out_trade_no": "OT36202004091957Ac7M",
"seller_id": "2088001575712426", // "seller_id": "2088001575712426",
"notify_time": "2020-04-09 19:57:50", // "notify_time": "2020-04-09 19:57:50",
"body": "888", // "body": "888",
"trade_status": "TRADE_SUCCESS", // "trade_status": "TRADE_SUCCESS",
"is_total_fee_adjust": "N", // "is_total_fee_adjust": "N",
"total_fee": "0.01", // "total_fee": "0.01",
"gmt_payment": "2020-04-09 19:57:49", // "gmt_payment": "2020-04-09 19:57:49",
"seller_email": "2022815690@qq.com", // "seller_email": "2022815690@qq.com",
"price": "0.01", // "price": "0.01",
"buyer_id": "2088302381536494", // "buyer_id": "2088302381536494",
"notify_id": "2020040900222195749036491455979554", // "notify_id": "2020040900222195749036491455979554",
"use_coupon": "N", // "use_coupon": "N",
"sign_type": "RSA", // "sign_type": "RSA",
"sign": "fa3cGcw+Y5VoIruvWtwN3/XPScPbaeXJI9v+p3I82z3Im0PloxZ/wVallZPJnFGqSIbhp6L3Czajbrz2dzdDPiWCpatH7j7CCTYaIxPXBKAcYuBINfQN3UqHLY2Nq1LS1jfCKwMeufGOUqW1+2yDbQB8TFAAApbvHf63l2Cfgc4=" // "sign": "fa3cGcw+Y5VoIruvWtwN3/XPScPbaeXJI9v+p3I82z3Im0PloxZ/wVallZPJnFGqSIbhp6L3Czajbrz2dzdDPiWCpatH7j7CCTYaIxPXBKAcYuBINfQN3UqHLY2Nq1LS1jfCKwMeufGOUqW1+2yDbQB8TFAAApbvHf63l2Cfgc4="
}; // };
var result = await this.utilsAlibankSve.verifyPayReturnSign(pobj, actionBody); // var result = await this.utilsAlibankSve.verifyPayReturnSign(pobj, actionBody);
// var result = await this.utilsAlibankSve.getH5AliDingPayInfo(pobj, pobj.actionBody); // // var result = await this.utilsAlibankSve.getH5AliDingPayInfo(pobj, pobj.actionBody);
return result; // return result;
} }
} }
module.exports = AliPayment; module.exports = AliPayment;
\ No newline at end of file
...@@ -29,7 +29,10 @@ module.exports = { ...@@ -29,7 +29,10 @@ module.exports = {
//接口类型 //接口类型
"interface_type": { "bd": "本地", "yc": "远程" }, "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 }, "logLevel": { "debug": 0, "info": 1, "warn": 2, "error": 3, "fatal": 4 },
......
...@@ -26,7 +26,7 @@ class utilsTlBankSve extends AppServiceBase { ...@@ -26,7 +26,7 @@ class utilsTlBankSve extends AppServiceBase {
partner: payParam.partner, partner: payParam.partner,
_input_charset: "UTF-8", _input_charset: "UTF-8",
notify_url: payParam.notify_url, 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, out_trade_no: actionBody.order_num,
subject: actionBody.body_desc, subject: actionBody.body_desc,
body: actionBody.body_desc, body: actionBody.body_desc,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment