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 = {