Browse Source

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

yangc 6 years ago
parent
commit
e3494dc4fc
1 changed files with 7 additions and 0 deletions
  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