Compare commits

..

2 Commits

Author SHA1 Message Date
ebf6a8ffc4 Merge branch 'aaaaaaaaa' of gitea.moe:lamp/random-miku-server into aaaaaaaaa 2021-10-20 17:03:18 -05:00
6ed02a4740 log query & ref 2021-10-20 17:03:16 -05:00

View File

@ -19,7 +19,7 @@ app.get("/https://www.pixiv.net/en/artworks/:id", async function (req, res, next
return redirectRandom(req, res); return redirectRandom(req, res);
else ipa_lastload_map[req.ip] = req.url; else ipa_lastload_map[req.ip] = req.url;
console.log(new Date().toLocaleString(), req.ip, req.params.id, req.query); console.log(new Date().toLocaleString(), req.ip, req.params.id, Object.keys(req.query).length ? req.query : '', req.headers['referer'] || '');
let pages = page_cache[req.params.id]; let pages = page_cache[req.params.id];
if (!pages) { if (!pages) {