Commit 73a692f2 by 宋毅

新接口

parent cf72ac3d
...@@ -27,18 +27,16 @@ module.exports = function (app) { ...@@ -27,18 +27,16 @@ module.exports = function (app) {
}); });
app.use('/tlpay/aliPayNotify', async function (req, res) {//钉钉接入的搁浅 app.use('/tlpay/aliPayNotify', async function (req, res) {//钉钉接入的搁浅
try { try {
var client_ip = system.get_client_ip(req); if (!req.body.key) {
var result = await utilsOrderSve.opH5AliDingPayBackNotify(req.body, client_ip); return res.end({code: -200, message: "缺少加签秘钥key参数"});
logCtl.info({
optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "记录阿里钉钉支付回调处理结果",
op: "center-channel/tlpay/aliPayNotify",
content: "支付回调处理结果:" + JSON.stringify(result),
clientIp: client_ip || ""
});
if (result.status != 0) {
return res.end("FAIL");
} }
return res.end("success"); if (!req.body.obj) {
return res.end({code: -200, message: "缺少obj参数"});
}
let obj = req.body.obj;
let key = req.body.key;
let result = await signSve.createSign(obj, key);
return res.end(JSON.stringify(result));
} catch (error) { } catch (error) {
logCtl.error({ logCtl.error({
optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "阿里钉钉支付回调处理异常", optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "阿里钉钉支付回调处理异常",
......
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