Commit 743612fd by linboxuan

lin

parent dd200492
...@@ -278,7 +278,7 @@ module.exports = function (app) { ...@@ -278,7 +278,7 @@ module.exports = function (app) {
}); });
// 2020 0927 lin 新增 阿里文网文 服务商侧提供接口2.3 服务单通知服务商 // 2020 0927 lin 新增 阿里文网文 服务商侧提供接口2.3 服务单通知服务商
app.use('/ali/esp/produce/notice', async function (req, res) { app.use('/esp/produce/notice', async function (req, res) {
try { try {
console.log(req.headers['content-type']) console.log(req.headers['content-type'])
if (req.headers['content-type'].indexOf('application/octet-stream') > -1) { if (req.headers['content-type'].indexOf('application/octet-stream') > -1) {
...@@ -288,7 +288,7 @@ module.exports = function (app) { ...@@ -288,7 +288,7 @@ module.exports = function (app) {
var result = await gatewaypushlogSve.produceNoticeAliEsp(req.body, client_ip); var result = await gatewaypushlogSve.produceNoticeAliEsp(req.body, client_ip);
logCtl.info({ logCtl.info({
optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "回调处理订单结果:,method=" + req.body.trxcode, optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "回调处理订单结果:,method=" + req.body.trxcode,
op: "/ali/esp/produce/notice", op: "/esp/produce/notice",
content: "回调参数:" + JSON.stringify(req.body) + "回调处理订单结果:" + JSON.stringify(result), content: "回调参数:" + JSON.stringify(req.body) + "回调处理订单结果:" + JSON.stringify(result),
clientIp: client_ip || "" clientIp: client_ip || ""
}); });
...@@ -297,7 +297,7 @@ module.exports = function (app) { ...@@ -297,7 +297,7 @@ module.exports = function (app) {
} catch (error) { } catch (error) {
logCtl.error({ logCtl.error({
optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "记录回调处理结果异常:,method=" + req.body.trxcode, optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "记录回调处理结果异常:,method=" + req.body.trxcode,
op: "/ali/esp/produce/notice", op: "/esp/produce/notice",
content: "回调参数:" + JSON.stringify(req.body) + "error:" + error.stack, content: "回调参数:" + JSON.stringify(req.body) + "error:" + error.stack,
clientIp: client_ip || "" clientIp: client_ip || ""
}); });
...@@ -306,7 +306,7 @@ module.exports = function (app) { ...@@ -306,7 +306,7 @@ module.exports = function (app) {
}); });
// 2020 0928 lin 新增 阿里文网文 服务商侧提供接口2.4 ⽤户⽅案反馈通知服务商 // 2020 0928 lin 新增 阿里文网文 服务商侧提供接口2.4 ⽤户⽅案反馈通知服务商
app.use('/ali/esp/intention/solution/feedback', async function (req, res) { app.use('/esp/intention/solution/feedback', async function (req, res) {
try { try {
console.log(req.headers['content-type']) console.log(req.headers['content-type'])
if (req.headers['content-type'].indexOf('application/octet-stream') > -1) { if (req.headers['content-type'].indexOf('application/octet-stream') > -1) {
...@@ -316,7 +316,7 @@ module.exports = function (app) { ...@@ -316,7 +316,7 @@ module.exports = function (app) {
var result = await gatewaypushlogSve.soulutionFeebackAliEsp(req.body, client_ip); var result = await gatewaypushlogSve.soulutionFeebackAliEsp(req.body, client_ip);
logCtl.info({ logCtl.info({
optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "回调处理订单结果:,method=" + req.body.trxcode, optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "回调处理订单结果:,method=" + req.body.trxcode,
op: "/ali/esp/intention/solution/feedback", op: "/esp/intention/solution/feedback",
content: "回调参数:" + JSON.stringify(req.body) + "回调处理订单结果:" + JSON.stringify(result), content: "回调参数:" + JSON.stringify(req.body) + "回调处理订单结果:" + JSON.stringify(result),
clientIp: client_ip || "" clientIp: client_ip || ""
}); });
...@@ -325,7 +325,7 @@ module.exports = function (app) { ...@@ -325,7 +325,7 @@ module.exports = function (app) {
} catch (error) { } catch (error) {
logCtl.error({ logCtl.error({
optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "记录回调处理结果异常:,method=" + req.body.trxcode, optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "记录回调处理结果异常:,method=" + req.body.trxcode,
op: "/ali/esp/intention/solution/feedback", op: "/esp/intention/solution/feedback",
content: "回调参数:" + JSON.stringify(req.body) + "error:" + error.stack, content: "回调参数:" + JSON.stringify(req.body) + "error:" + error.stack,
clientIp: client_ip || "" clientIp: client_ip || ""
}); });
......
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