Переглянути джерело

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

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