Преглед на файлове

开通卖家中心请求打印日志

yangc преди 6 години
родител
ревизия
e3494dc4fc
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7 0
      server.js

+ 7 - 0
server.js

@@ -30,6 +30,13 @@ app.get('/ssoPrefix/**', (req, res, next) => {
   next()
 })
 
+app.all('*', (req, res, next) => {
+  if (req.url.indexOf('/basic/enterprise/openVendor') > -1) {
+    console.log(new Date(), req.url)
+  }
+  next()
+})
+
 app.set('port', port)
 
 // Import and Set Nuxt.js options