This commit is contained in:
forget_the_bright 2023-04-12 22:20:24 +08:00
parent d1cb4b6c80
commit 06bcf929cc

View File

@ -29,7 +29,7 @@ app.post("/track", function (req, res) {
updateFile(response, body, path);
});
}
if (req.body || req.body.hasOwnProperty("status")) {
if (req.body && req.body.hasOwnProperty("status")) {
updateFile(res, req.body, req.query.path);
} else {
readbody(req, res, req.query.path)