guoziyun hai 1 ano
pai
achega
b2002b21d1
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      routes/proxy.js

+ 2 - 0
routes/proxy.js

@@ -7,6 +7,8 @@ const config = require('../config/app');
 router.use('/', async (req, res) => {
   console.log(`proxy req.url = ${req.url}`);
   const targetUrl = `${config.resHost}${req.url}`; // 替换为目标服务器的 URL
+  console.log(`targetUrl = ${targetUrl}`);
+
   const method = req.method;
   const headers = {
     ...req.headers,