|
@@ -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();
|
|
|
})
|
|
|
|
|
|
//消息与任务接口
|