guoziyun 1 年之前
父節點
當前提交
5f3537e48a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      routes/proxy.js

+ 1 - 0
routes/proxy.js

@@ -4,6 +4,7 @@ const fetch = require('node-fetch');
 
 // 代理请求的中间件
 router.use('/', async (req, res) => {
+  console.log(`proxy req.url = ${req.url}`);
   const targetUrl = `http://color.jccytech.cn${req.url}`; // 替换为目标服务器的 URL
   const method = req.method;
   const headers = {