Pārlūkot izejas kodu

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

yangc 7 gadi atpakaļ
vecāks
revīzija
e3494dc4fc
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  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