瀏覽代碼

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

yangc 7 年之前
父節點
當前提交
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