Commit 846ef150 by linboxuan

alipayNotify

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