zengyicheng 1 年之前
父节点
当前提交
f007368cef
共有 1 个文件被更改,包括 3 次插入3 次删除
  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();
 })
 
 //消息与任务接口