Commit fd8e6862 by 王栋源

wdy

parent 802cd763
...@@ -8,7 +8,8 @@ module.exports = function (app) { ...@@ -8,7 +8,8 @@ module.exports = function (app) {
app.use('/api/ali/esp/intention/submit', async function (req, res) { app.use('/api/ali/esp/intention/submit', async function (req, res) {
try { try {
if (req.headers['content-type'].indexof('application/octet-stream')>-1 ) { console.log(req.headers['content-type'])
if (req.headers['content-type'].indexOf('application/octet-stream')>-1 ) {
await logCtl.applicationOctetStream2Json(req); await logCtl.applicationOctetStream2Json(req);
} }
var client_ip = system.get_client_ip(req); var client_ip = system.get_client_ip(req);
...@@ -34,7 +35,7 @@ module.exports = function (app) { ...@@ -34,7 +35,7 @@ module.exports = function (app) {
}); });
app.use('/api/ali/esp/intention/solution/feedback', async function (req, res) { app.use('/api/ali/esp/intention/solution/feedback', async function (req, res) {
try { try {
if (req.headers['content-type'].indexof('application/octet-stream')>-1 ) { if (req.headers['content-type'].indexOf('application/octet-stream')>-1 ) {
await logCtl.applicationOctetStream2Json(req); await logCtl.applicationOctetStream2Json(req);
} }
var client_ip = system.get_client_ip(req); var client_ip = system.get_client_ip(req);
...@@ -59,7 +60,7 @@ module.exports = function (app) { ...@@ -59,7 +60,7 @@ module.exports = function (app) {
}); });
app.use('/api/ali/ic/paySuccess', async function (req, res) { app.use('/api/ali/ic/paySuccess', async function (req, res) {
try { try {
if (req.headers['content-type'].indexof('application/octet-stream')>-1 ) { if (req.headers['content-type'].indexOf('application/octet-stream')>-1 ) {
await logCtl.applicationOctetStream2Json(req); await logCtl.applicationOctetStream2Json(req);
} }
var client_ip = system.get_client_ip(req); var client_ip = system.get_client_ip(req);
...@@ -84,7 +85,7 @@ module.exports = function (app) { ...@@ -84,7 +85,7 @@ module.exports = function (app) {
}); });
app.use('/api/ali/ic/close', async function (req, res) { app.use('/api/ali/ic/close', async function (req, res) {
try { try {
if (req.headers['content-type'].indexof('application/octet-stream')>-1 ) { if (req.headers['content-type'].indexOf('application/octet-stream')>-1 ) {
await logCtl.applicationOctetStream2Json(req); await logCtl.applicationOctetStream2Json(req);
} }
var client_ip = system.get_client_ip(req); var client_ip = system.get_client_ip(req);
...@@ -109,7 +110,7 @@ module.exports = function (app) { ...@@ -109,7 +110,7 @@ module.exports = function (app) {
}); });
app.use('/api/ali/esp/intention/close', async function (req, res) { app.use('/api/ali/esp/intention/close', async function (req, res) {
try { try {
if (req.headers['content-type'].indexof('application/octet-stream')>-1 ) { if (req.headers['content-type'].indexOf('application/octet-stream')>-1 ) {
await logCtl.applicationOctetStream2Json(req); await logCtl.applicationOctetStream2Json(req);
} }
var client_ip = system.get_client_ip(req); var client_ip = system.get_client_ip(req);
......
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