zengyicheng před 1 rokem
rodič
revize
f007368cef
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      ssti.js

+ 3 - 3
ssti.js

@@ -64,18 +64,18 @@ router.post('/testApi', function(req, res, next) {
         headers: req.headers
         headers: req.headers
     };
     };
 
 
-    const req = https.request(options, (res) => {
+    const backendReq = https.request(options, (res) => {
         // 处理响应
         // 处理响应
         res.on('data', (data) => {
         res.on('data', (data) => {
             console.log(data.toString());
             console.log(data.toString());
         });
         });
     });
     });
 
 
-    req.on('error', (error) => {
+    backendReq.on('error', (error) => {
         console.error(error);
         console.error(error);
     });
     });
 
 
-    req.end();
+    backendReq.end();
 })
 })
 
 
 //消息与任务接口
 //消息与任务接口