Commit 846ef150 by linboxuan

alipayNotify

parent e39e5afc
...@@ -571,7 +571,7 @@ class UtilsOrderService extends AppServiceBase { ...@@ -571,7 +571,7 @@ class UtilsOrderService extends AppServiceBase {
try { try {
console.log("支付宝回调参数信息--------------------start") console.log("支付宝回调参数信息--------------------start")
console.log(typeof(parmas)) console.log(typeof(parmas))
console.log(parmas) console.log(parmas.toString())
console.log("支付宝回调参数信息--------------------end") console.log("支付宝回调参数信息--------------------end")
//日志记录 //日志记录
this.logCtl.info({ this.logCtl.info({
...@@ -599,17 +599,17 @@ class UtilsOrderService extends AppServiceBase { ...@@ -599,17 +599,17 @@ class UtilsOrderService extends AppServiceBase {
sign += this.paySecret sign += this.paySecret
sign = md5(sign).toUpperCase() sign = md5(sign).toUpperCase()
params.sign = sign params.sign = sign
let res = await axios.post(url, params) // let res = await axios.post(url, params)
this.logCtl.info({ // this.logCtl.info({
optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "支付宝回调参数验签结果", // optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "支付宝回调参数验签结果",
op: "service/impl/utilsSve/utilsOrderSve.js/aliPayNotify", // op: "service/impl/utilsSve/utilsOrderSve.js/aliPayNotify",
content: JSON.stringify(res), // content: JSON.stringify(res),
clientIp: client_ip || "" // clientIp: client_ip || ""
}); // });
if (res.status != 0) { // if (res.status != 0) {
res.msg = res.msg + ",100480"; // res.msg = res.msg + ",100480";
return res; // return res;
} // }
// 模拟验签结果 // 模拟验签结果
var outTradeInfo = parmas.out_trade_no.split('-'); var outTradeInfo = parmas.out_trade_no.split('-');
console.log("模拟验签结果--------------",outTradeInfo) console.log("模拟验签结果--------------",outTradeInfo)
......
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