修改
This commit is contained in:
parent
f1fc3d39c8
commit
d1cb4b6c80
2
index.js
2
index.js
@ -29,7 +29,7 @@ app.post("/track", function (req, res) {
|
|||||||
updateFile(response, body, path);
|
updateFile(response, body, path);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (req.body.hasOwnProperty("status")) {
|
if (req.body || req.body.hasOwnProperty("status")) {
|
||||||
updateFile(res, req.body, req.query.path);
|
updateFile(res, req.body, req.query.path);
|
||||||
} else {
|
} else {
|
||||||
readbody(req, res, req.query.path)
|
readbody(req, res, req.query.path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user