zengyicheng 1 tahun lalu
induk
melakukan
f007368cef
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      ssti.js

+ 3 - 3
ssti.js

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