mirror of
https://github.com/lyz05/danmaku.git
synced 2026-02-02 17:59:53 +08:00
refactor(logging): optimize log output format
This commit is contained in:
@@ -79,6 +79,7 @@ async function resolve(req, res) {
|
||||
if (ret.url) {
|
||||
res.redirect(ret.url);
|
||||
} else {
|
||||
console.log("标题:", ret.title, "弹幕数量:", ret.content.length);
|
||||
res.set('Cache-Control', 'public, max-age=86400'); // 缓存一天
|
||||
res.render("danmaku-xml", { contents: ret.content });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user